Welcome to WebmasterWorld Guest from 22.214.171.124
I added debugging code to my code that catches the file. It shows the actual variables my script will use. This is what it shows for a 4k text file.
However when i upload a 284k text file.
I have had errors on files as small as 28k
Why is it now not working?
This is the excerpt of my debugging code.
I am pretty sure it is right because it works for the small files.
It looks like the temp directory is fine with permissions open for everyone.
Echo "<BR><BR><BR>Debugging data<BR>
upload_max_filesize = 999999999
file_uploads = On
upload_tmp_dir = C:\PHPUPTMP\
; also tried C:\PHPUPTMP
; and C:\PHP\uploadtemp
max_execution_time = 9000
memory_limit = 999999999
post_max_size = 999999999
;what does this do (seems to work better Off, tried both)
always_populate_raw_post_data = Off
;Every where that i have 999999999 i also have tried 100M and 20M
I also managed to fix it by using a clean copy of php.ini, the recomended one. Not really sure what happened to it but it was the cause. I also got it to upload 30 megs with a set limit of 120M.
As far as i can tell it was using its 4k cache to upload the files instead of putting it in the upload temp directory. At least that is the only reason i can think that small files under 4k were working.
Does anyone know how php handles multiple large uploads. Are they all put in memory.
Anyway, thanks all for the help.
About those multiple uploads, I've done it with up to 12 files, each 3 or 4 MB and I didn't like how much it took to upload and I decided to use SFTP or SSH to upload the files and then use a web-based interface to put them in the database and in the directory they belong to.
Now I have File Uploads turned off.
Just an idea.