I'm using a shared hosting with 2MB limit for uploading file using php. So I was wondering if I upload a file more than 2MB using cURL to my S3 amazon , will it work ? Thanks
Asked
Active
Viewed 495 times
0
-
how will you get the file to your server so it can upload to amazon? – Marc B Oct 21 '12 at 19:28
-
1Don't think it will work because the file will have to be uploaded to your temp-folder first... – pebbo Oct 21 '12 at 19:29
-
@Baba How do I split the file in php ? – user1725155 Oct 21 '12 at 19:30
-
Since you say you want to use curl to upload to your server ??? you can split the file and sent it in batches ... – Baba Oct 21 '12 at 19:37
-
1If you are only allowed to use 2MB it would be a good moment to start looking for another host – PeeHaa Oct 21 '12 at 19:40
-
I agree with PeeHaa .... but if you have no choice then split the file .... if that you need let me know – Baba Oct 21 '12 at 19:47
-
how to split the file ? any tutorial or document ? @Baba – user1725155 Oct 21 '12 at 19:49
-
1See http://stackoverflow.com/questions/12406300/split-big-txt-file-with-php/12407208#12407208 ... what format are the files ??? – Baba Oct 21 '12 at 19:50
-
@Baba Thanks for the link, file are mostly in zip or image file. – user1725155 Oct 21 '12 at 19:58
-
@user1725155 that is easy .... if you still need help let me know .... – Baba Oct 21 '12 at 20:05
1 Answers
0
Check this out.
This way you can completely avoid uploading the file through your webserver, meaning no max-size issues and less workload. You only have to specify the callback URL and you're done.

alexcasalboni
- 1,726
- 1
- 16
- 26