OK you've got your frag man! (:

This is the part <http://mojolicio.us/perldoc/Mojo/UserAgent/Transactor#tx>, 
if anyone will be interested:

# POST request with upload streamed from assetmy $asset = 
Mojo::Asset::Memory->new->add_chunk('lalala');my $tx    = $t->tx(
  POST => 'http://example.com' => form => {mytext => {file => $asset}});


So I only have to do 

$post = $ua->post($url => { 'Content-Type' => $mimetype } => form => { file 
=> { file => $upload->asset }} );

without the need to check whether the asset is a file or not.

On Saturday, August 30, 2014 2:58:47 PM UTC+2, sri wrote:
>
> Looked here:...
>>
>
> If you look at the description of the actual method you are using and the 
> resources it links to, you still can't figure it out?
>
>    http://mojolicio.us/perldoc/Mojo/UserAgent#post
>
> --
> sebastian 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to