Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Upload File -> Help
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Renato Forti  
View profile  
 More options Nov 7 2012, 5:48 am
From: Renato Forti <rtfo...@gmail.com>
Date: Wed, 7 Nov 2012 02:48:06 -0800 (PST)
Local: Wed, Nov 7 2012 5:48 am
Subject: Re: [Mojolicious] Upload File -> Help

Tks!!!

Em terça-feira, 6 de novembro de 2012 21h14min56s UTC-2,
nor...@googlemail.com escreveu:

> i wrote a uploader the other day, have a look here:

> https://github.com/norbu09/planet-express-ship/commit/d033319d5b139ba...

> it uses a quite nice uploader frontend that supports html5 and flash
> uploads as well as normal posts.

> cheers
> lenz

> On Wed, Nov 7, 2012 at 12:34 AM, Renato Forti <rtf...@gmail.com<javascript:>>
> wrote:
> > Hi Thanks for help!

> > It works!!! :o)

> > Em terça-feira, 6 de novembro de 2012 08h20min24s UTC-2, Ben van
> Staveren
> > escreveu:

> >> Try using:

> >> my $upload = $self->req->upload('_file');

> >> On 11/06/2012 05:14 PM, Renato Forti wrote:
> >> > Hi All,

> >> > I'm trying upload a file, but my file data is not 'moved' to dir! The
> >> > file
> >> > is created, but with 0kb. See my code! I am using normal app (no Lite
> >> > App)!

> >> > First in :

> >> > sub  startup {
> >> >    # ...
> >> >    $r->post('/upload')->to('services#upload');
> >> >    # ...
> >> > }

> >> > Now, in Services.pm

> >> > sub  upload
> >> > {
> >> >     my  $self=  shift;

> >> >     # Check file size
> >> >     return  $self->render(text=>  'File is too big.', status=>  200)
> >> >       if  $self->req->is_limit_exceeded;

> >> >     # Process uploaded file
> >> >     my  $file=  $self->param('_file');
> >> >     my  $upload=  Mojo::Upload->new;

> >> >     $upload->move_to('/hades/temp/zones/sa/east/1b/temp/foo.txt');

> >> >     my  $size=  $upload->size;
> >> >     my  $name=  $upload->filename;

> >> >     $self->render(text=>  "Thanks for uploading $size byte file
> >> > $name.");
> >> > }

> >> > What is wrong!!!?

> >> > Anoter question: How do I can put a loadding bar on File Updload Web
> >> > Page! Any Idea?

> >> > Thanks
> >> > --
> >> > You received this message because you are subscribed to the Google
> >> > Groups
> >> > "Mojolicious" group.
> >> > To view this discussion on the web visit
> >> > https://groups.google.com/d/msg/mojolicious/-/h2hxPjHnNJAJ.
> >> > To post to this group, send email to mojol...@googlegroups.com.
> >> > To unsubscribe from this group, send email to
> >> > mojolicious...@googlegroups.com.
> >> > For more options, visit this group at
> >> > http://groups.google.com/group/mojolicious?hl=en.

> >> --
> >> Ben van Staveren
> >> phone: +62 81 70777529
> >> email: benvans...@gmail.com

> > --
> > You received this message because you are subscribed to the Google
> Groups
> > "Mojolicious" group.
> > To view this discussion on the web visit
> > https://groups.google.com/d/msg/mojolicious/-/awLXOXkk5J0J.

> > To post to this group, send email to mojol...@googlegroups.com<javascript:>.

> > To unsubscribe from this group, send email to
> > mojolicious...@googlegroups.com <javascript:>.
> > For more options, visit this group at
> > http://groups.google.com/group/mojolicious?hl=en.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.