The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]
FreeBSD Support
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 SSL versus File Upload Scripts
Author: el_kab0ng 
Date:   31-07-00 23:04

After the extensive help on FTP related issues (which has been much appreciated guys/girls) I bring to the table a new problem.

I have another Free BSD 4.0 RELEASE box running Apache/Raven SSL. I have been given the quest to design a file upload system through a browser. Not that the CGI creation is that big of a deal, but here's the problems I'm having. Any support is greatly appreciated as usual.

SSL runs by default on port 443. This is pretty much the standard. I am assuming that file upload scripts that utilize cgi-lib.pl (or strict CGI) run their uploads through port 80.

With this in mind, here's what is occuring:
The script functions flawlessly, even reports that the file has been uploaded. When checking the bin assigned for the upload, the files are not being uploaded. I assuming this is because of the SSL. Since my server is not listening on 80, but on 443, these files are being dropped somehow.

I don't want this to become a script thread, since the script itself is functioning, but rather, a SSL discussion. Is there anyway around this? Am I totally off the ball with what I have attempted?

Reply To This Message
 
 RE: SSL versus File Upload Scripts
Author: Philip 
Date:   01-08-00 18:27

If I remember right you have to move the file from it's uploaded location to somewhere else otherwise the cgi lib will delete it. If you are accessing the pages through SSL and your script is reporting a successful upload, but the file isn't there, then it's a script thing, not a SSL thing.

In other words, it doesn't matter what port your webserver runs on... all that happens before the CGI script sees it.

At least that's my understanding of it.

I'd take a look through the CGI docs and see if you have to do anything special to stop it from deleting the file upon completion (this is true of PHP).

-philip

Reply To This Message
 
 RE: SSL versus File Upload Scripts
Author: Dan Langille 
Date:   02-08-00 03:08

Do you know this site has a <a href="http://www.freebsddiary.org/fileupload.html">file upload script</a>?

Reply To This Message
 
 RE: SSL versus File Upload Scripts
Author: el_kab0ng 
Date:   02-08-00 03:58

Success! After researching the issue a bit further, and from the invaluable knowledge you folks have provided me, I was able to get the file uploading issue to work! Once again you guys rawk! It's the power to help that has kept me coming back to this site....it's the needle in the hay stack BSD users like myself have been searching for.

Kudos to the designers!

Much appreciation to the folks out there that make it their business to help!

Reply To This Message
 Forum List  |  Threaded View   Newer Topic  |  Older Topic 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org