Uploading Files

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chunk1978
    New Member
    • Jan 2007
    • 224

    Uploading Files

    on my form it's possible for users to upload large files onto the server...

    Question 1: when the user presses the "submit form" button, will the browser be directed immediately to the "thank you" page, or will it first rest on the form page while the files upload, and then goto the "thank you" page after the files have been uploaded?

    Question 2: if anyone can direct me to a strong example of a PHP script that will upload files, send email to the user that can include what they filled in on the form, and redirect the user to a "thank you" page, i would be very grateful :-)

    phew PHP is confusing... :-)

    thanks...
  • cyberking
    New Member
    • Jan 2007
    • 84

    #2
    Originally posted by chunk1978
    on my form it's possible for users to upload large files onto the server...

    Question 1: when the user "submit forpresses the m" button, will the browser be directed immediately to the "thank you" page, or will it first rest on the form page while the files upload, and then goto the "thank you" page after the files have been uploaded?

    Question 2: if anyone can direct me to a strong example of a PHP script that will upload files, send email to the user that can include what they filled in on the form, and redirect the user to a "thank you" page, i would be very grateful :-)

    phew PHP is confusing... :-)

    thanks...

    Hi.

    firstly, you shall be directed to the thank you page only if there is a successfull file upload. Else you shall land up in an error page instead. Successful file upload will take you to the thank you page.

    And next, what sort of files are you uploading?

    Regards
    CyberKing

    Comment

    • chunk1978
      New Member
      • Jan 2007
      • 224

      #3
      Originally posted by cyberking
      Hi.

      firstly, you shall be directed to the thank you page only if there is a successfull file upload. Else you shall land up in an error page instead. Successful file upload will take you to the thank you page.

      And next, what sort of files are you uploading?

      Regards
      CyberKing
      hey CyberKing

      thanks for the reply... i'll be uploading image files with the following file extensions: .jpg, .jpeg, .psd, .tiff, .png, and a few others... my client-side javascript will validate those file extensions, but i suppose i should also validate the file type in the .php script, oh and i'll be tweeking the htaccess( ? i guess) to allow for a 15MB max on each image...

      i have a thank you page already set up, i just assume the thank you page direct after a successful file upload will just be a simple http link within the .php script, and not a part of the .php script...

      Comment

      Working...