User Profile

Collapse

Profile Sidebar

Collapse
owz2008
owz2008
Last Activity: Oct 16 '08, 10:13 AM
Joined: Jun 24 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • owz2008
    replied to CGI file upload script problems
    in Perl
    Thanks Kevin, Iv'e done that. Not sure if it works yet as I'm still having trouble submitting the form..

    I now seem to get the error "Error : Cannot upload file 1215417988-1jpg: Permission denied"

    The file name is paypal.jpg is it normal for the files to be uploaded as different names?

    I have checked the permissions on the uploadfolder, the script folder and the .cgi script, but it still produces...
    See more | Go to post

    Leave a comment:


  • owz2008
    replied to CGI file upload script problems
    in Perl
    Hello again Kevin, I looked up how to upload in ascii format and it looks like I was uploading in ascii format all along, so thats not the issue,

    I've decided to get a new script as I got fed up trying to debug the old one, but I'm now having problems with this news script...

    I downloaded the file uploader script from www.mycgiscript s.com/file-uploader.html

    theres two parts that have stumped me, this script...
    See more | Go to post

    Leave a comment:


  • owz2008
    replied to CGI file upload script problems
    in Perl
    it might be worth me emailing you my script file and you can then tell me if the script is saved in the correct format... ?
    See more | Go to post

    Leave a comment:


  • owz2008
    replied to CGI file upload script problems
    in Perl
    Hi Kev, I tried that script but i got the following:

    Internal Server Error

    The server encountered an internal error or misconfiguratio n and was unable to complete your request.
    Please contact the server administrator, webmaster@icomw orks.co.uk and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be...
    See more | Go to post

    Leave a comment:


  • owz2008
    replied to CGI file upload script problems
    in Perl
    I've also noticed that even when I get that last error, I check the canvasimages directory on the ftp and there are no images stored. ??
    See more | Go to post

    Leave a comment:


  • owz2008
    replied to CGI file upload script problems
    in Perl
    I think we're getting somewhere now..

    i put the code in and replaced the paths, but I now get the error

    Software error:

    Can't open </public_html/canvasimages/louise_h_pic.jp g> : No such file or directory at upload.cgi line 39.

    The file paths for the upload are not right. But im unsure of the convention..

    On the ftp where i upload my site there sits the cgi - bin, public_html,...
    See more | Go to post

    Leave a comment:


  • owz2008
    replied to CGI file upload script problems
    in Perl
    Im wondering if perhaps the script is not finding perl at the location stated?

    Also

    What happens if the file upload path is incorrect? would that crash the script?

    I've double checked the html and the form element's names (photo + email_address) both match the script...

    Running out of ideas...
    See more | Go to post

    Leave a comment:


  • owz2008
    replied to CGI file upload script problems
    in Perl
    I'm saving the script into notepad on a p.c, how do i go about making sure its in ASCII format? I have also set the permissions to 755...
    See more | Go to post

    Leave a comment:


  • owz2008
    replied to CGI file upload script problems
    in Perl
    I tried replacing the code and I know get a different error?



    I can't seem to get anywhere with this... my script only includes the fields for the email and the actual file object, but my html form actually has several more fields. I only used the two fields in the script just to try and get it working. could this be why my script is not loading?

    (im clutching at straws here) :(...
    See more | Go to post

    Leave a comment:


  • owz2008
    replied to CGI file upload script problems
    in Perl
    Thanks Kevin will try that,

    What if I want to place a link in the perl script which links to a page for example www.icomworks.c o.uk/canvaspayform2. html instead of putting the actual html within the script.. how is this done?


    thanks again, I appreciate the help..

    Owain
    See more | Go to post

    Leave a comment:


  • owz2008
    replied to CGI file upload script problems
    in Perl
    here is the script again with better spacing..

    Code:
    #!/usr/bin/perl -wT 
    
    use strict; 
    use CGI; 
    use CGI::Carp qw ( fatalsToBrowser ); 
    use File::Basename; 
    
    $CGI::POST_MAX = 1024 * 5000; 
    my $safe_filename_characters = "a-zA-Z0-9_.-"; 
    my $upload_dir = "/public_html/canvasimages"; 
    
    my $query = new CGI; 
    my $filename = $query->param("photo");
    ...
    See more | Go to post

    Leave a comment:


  • owz2008
    replied to CGI file upload script problems
    in Perl
    Hello again Kevin, I typed the perl script into a windows notepad document on my pc and then saved that as a cgi file. I then uploaded that to the server.

    Now when i submit the form i get the following error...

    Software error:

    Can't find string terminator "END_HTML" anywhere before EOF at upload.cgi line 50.

    the line their referring to has the following code: print <<END...
    See more | Go to post

    Leave a comment:


  • owz2008
    replied to CGI file upload script problems
    in Perl
    Thanks for the reply Kevin,

    I have set the permissions to 755 and I know what your saying about putting the script into the cgi-bin but the server admin told me to put it in a seperate folder in the public_html because pipex who the servers are with do not like them being stored there..

    Can you see any errors in my script?

    I want the images once uploaded to go into a folder called canvasimages in the public_html...
    See more | Go to post

    Leave a comment:


  • owz2008
    started a topic CGI file upload script problems
    in Perl

    CGI file upload script problems

    This has probably been covered before but could not find a similar thread.

    Basically I have created a form which can be viewed at www.icomworks.c o.uk/canvaspayform.h tml

    I want to submit the form along with the file so that they are both placed on my server... I have created a folder on my server in my public_html called myscripts and have saved my upload.cgi script into that folder. my form points to that script but...
    See more | Go to post
No activity results to display
Show More
Working...