Setting PHP tmp dir - PHP upload not working

后端 未结 6 1913
北海茫月
北海茫月 2020-11-28 05:38

I\'m working on file upload via a webpage with a progress bar using Valums file uploader. Almost everything works fine, but I\'m not able to change the default tmp directory

6条回答
  •  广开言路
    2020-11-28 05:45

    I struggled with this issue for a long time... My solution was to modify the php.ini file, in the folder that contained the php script. This was important, as modifying the php.ini at the root did not resolve the problem (I have a php.ini in each folder for granular control). The relevant entries in my php.ini looked like this.... (the output_buffering is not likely needed for this issue)

    output_buffering = On 
    upload_max_filesize = 20M 
    post_max_size = 21M
    

提交回复
热议问题