Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

File not getting uploaded

by raks_diamond (Initiate)
on Sep 24, 2013 at 10:55 UTC ( #1055467=perlquestion: print w/ replies, xml ) Need Help??
raks_diamond has asked for the wisdom of the Perl Monks concerning the following question:

Hi All, I am using Jquery::file::upload to upload a file using drag and drop.When i drop file on dropzone cgi gets called and it completes successfully. There is no error but still file not gets uploaded.It should be in the same dir as cgi script.Code is as follows
#!/usr/bin/perl use jQuery::File::Upload; my $j_fu = jQuery::File::Upload->new; $j_fu->handle_request(1);
Please help me in finding the issue. Thanks, Rakesh

Comment on File not getting uploaded
Download Code
Re: File not getting uploaded
by Corion (Pope) on Sep 24, 2013 at 11:02 UTC

    Is there any error message in the web server error log?

    Have you read what jQuery::File::Upload has to say about the default upload directory?

    What steps have you taken to find the cause of the error?

      No there are no error logs and default directory is current directory of cgi script +"/files".

        Hwo do you reconcile the following two statements by you:

        still file not gets uploaded.It should be in the same dir as cgi script.

        and

        default directory is current directory of cgi script +"/files".

        I highly recommend reading jQuery::File::Upload and finding out where the error logs for your webserver are stored and getting access to them.

        Maybe you also want to make sure that the default upload directory does exist and the user the web server is running as, and/or the user your script is running as are allowed to create files in that directory.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1055467]
Approved by hdb
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2014-09-21 23:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (176 votes), past polls