rkrathor — 2014-02-25T01:25:18-05:00 — #1
I have some data to upload through php and the data could be in zipped or RAR format and file size could be more than 400MB. So i need some good code to work on this with minimum data loose and error.
Could it be possible to upload such a large amount of data through php, if yes then i request to you please suggest some good stuff to use.
therockers — 2014-02-25T14:59:15-05:00 — #2
PHP can upload as much file size as it can I believe. Your huge problem you will encounter on large file size is your php.ini or .htaccess. I have created my own "YouTube" sort of file uploading where you can only upload videos, but the file size are too large so I get the 413 error.
I'm not sure if it'll help you, but you need to change the max_upload_size and max_upload_limit, but I've tried this and it still doesn't work. Tried it on .htaccess and it gives me error 500 apache misconfiguration.
It's not working for me so I stopped building that application for a while now, but I'm certain that someone has gotten it to work. Your issue will probably be php.ini or .htaccess if you have access to either both of them.
rkrathor — 2014-02-26T03:12:46-05:00 — #3
Can you pls share some code, it will help me.
therockers — 2014-02-26T15:12:26-05:00 — #4
Please try to attempt it yourself. Forums are made to help people, not just "Do it all for me" kind of idea. I would like to share my ideas, but you have to attempt it first or else I'm doing your work for you and you won't know what to do when you encounter another problem. Also, you won't learn a thing if you make people do your work for you.
I don't want to sound rude or mean, but that's how a lot of coding forums will do.
mittineague — 2014-02-26T15:47:32-05:00 — #5
I have a shared host that doesn't allow me access to the ini file.
But I have used ini_set to change things like max limits, memory, timeout etc with some success.
xmog — 2014-02-26T21:23:19-05:00 — #6
I found this article:
Also take a look at the comments. It could help you!
I found it looking for "how to upload large file with PHP" on Google. There's a lot
Also, some other articles on stackoverflow: