Uploading large or compressed files?

3

I have a problem uploading files to the server for large files, and an idea was to send some of them in a way that is compressed .zip .

Is there any problem in leaving open the upload part for the user to be able to send files of this type?

Do you have any other solution for sending large files that exceed the limit and thus give time out ?

    
asked by anonymous 20.07.2015 / 15:31

1 answer

2

There is no problem in this type of extension, on the contrary. And if there were too, you would be doing something very wrong in your script .

To allow larger files to be uploaded you can change the php.ini file. Search for:

; Maximum allowed size for uploaded files.
upload_max_filesize = 32M

; Must be greater than or equal to upload_max_filesize
post_max_size = 32M

If the problem is time change:

max_execution_time = 60
max_input_time = 60

You may need to increase it even further. It's good not to rise too much. And then deal with the problem, probably using the register_shutdown_function function.

Documentation .

    
20.07.2015 / 15:37