+ 3

Uploading a large size file to a server via php on iis

Hello everyone :-) I've a question about upload a file to a server via php on iis of Microsoft. I've written the code and it's working fine for small size files, but when I'm trying to upload a large file, the session is close before the file is uploaded. I've changed the the session open time on the conf file of the php and in the iis conf file also, but still it don't work. Any idea how to solve it? Thanks to the helpers :-)

23rd Oct 2017, 6:37 PM
Qanshaw Avgana
Qanshaw Avgana - avatar
6 Answers
+ 2
I can try Apache but it'll take time that I don't have in the moment
23rd Oct 2017, 8:30 PM
Qanshaw Avgana
Qanshaw Avgana - avatar
+ 1
Maybe you must to change megabyte limits too
23rd Oct 2017, 7:26 PM
Daniel
Daniel - avatar
+ 1
@Daniel FernĂĄndez Hidalgo I did that to, I changed it to unlimited. Still don't work.
23rd Oct 2017, 7:48 PM
Qanshaw Avgana
Qanshaw Avgana - avatar
+ 1
@Bagshot my problem isn't the file size, it's the uploading time. After about 3-5 min the browser is ends the session, no matter what I do.
24th Oct 2017, 3:40 PM
Qanshaw Avgana
Qanshaw Avgana - avatar
0
could you try in another server?
23rd Oct 2017, 7:54 PM
Daniel
Daniel - avatar
0
With Apache you must change settings in the php.ini file. It's currently set to 2MB for max upload size. It's been a while so I can't remember the exact setting, but I'm sure if you google it, you'll find what you need. Maybe iis is similar. Good Luck.
24th Oct 2017, 7:12 AM
Bagshot
Bagshot - avatar