File Upload does not work on secure server

Discussion in 'PHP' started by soniaa, Dec 4, 2008.

  1. #1
    Hi,

    I have designed an online application form which requires the user to attach documents (either a word, or pdf)

    The program works fine when I test on my PC, and same when I put it on my server (http).

    But I need to put my application on another server, more preciously a secure server (https), and same program not working over there.

    Do I need to change any setting in configuration file?

    Any help would be most welcomed.
     
    soniaa, Dec 4, 2008 IP
  2. Tarkan

    Tarkan Peon

    Messages:
    491
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I would research "https php" in google and other places, maybe a script gets called at http:// when it should be called at https://
     
    Tarkan, Dec 5, 2008 IP
  3. soniaa

    soniaa Guest

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I have somehow managed to know where the problem is coming, I am now getting the error:"Missing a temporary folder"

    I have created a new temp folder in C drive and gave all the necessary permissions, changed the setting in php.ini file too but nothing seems to work.

    Do i need to restart IIS after modifying php.ini?
     
    soniaa, Dec 9, 2008 IP
  4. soniaa

    soniaa Guest

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I finally got the solution myself. php.ini was configured to use the default temporary folder, and it seemed that my application could not write to that folder. i changed the default folder by modifying the following line:
    upload_tmp_dir = c:\temp
    But still attachments were not being sent!!!
    I did a phpinfo() and saw that new changes didnt take effect. So I restarted IIS and bingo, it was ok.
     
    soniaa, Dec 17, 2008 IP