$file = $self->req->upload('file')->asset(Mojo::Asset::File->new);

And all assets will be stored to files.
29 авг. 2014 г. 18:33 пользователь "rasta" <[email protected]>
написал:

> Hi guys!
>
> I'm getting a file from the client which I then need to forward to another
> server.
>
> my $file = $self->req->upload('file');
>
> But if the file is small enough, it's just in memory...
>
> if($file->asset->is_file){
>     $post = $ua->post($url => { 'Content-Type' => $mimetype } => form => {
> file => { file => $file->asset->path }} );
> }else{
>     what should I do here???
> }
>
> Do I have to mess with creating a temp file first? Or can I feed the user
> agent with the asset somehow?
>
> Thanks!
> Rasta
>
> --
> 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.
>

-- 
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