I am planning to use the uploaded_file_to_s3_manually() function to be able to upload resized images. Is it possible to upload multiple files to S3 from a single upload? E.g., 40×40, 360×200, 960×480, 2400×1600 to deliver <photo> sets. Is it possible to run the resize and upload functions multiple times to accomplish this without making the user upload the same photo several times?
User do not need to upload multiple times, you can use available resize method to resize but to upload to S3 you can upload only one file at a time, so you can have all available size files in server folder and then in a loop call this manual upload method to upload files, suggest you to add 100ms delay between each Call to reduce the chanches of failure.
Thank you! I’ll give that a try.
hi, do you still offer free support on this?
Yes, comment or message to me about your problem.
Does this script work with Laravel?
No this does not work.
Hi, I am interested in your module and thinking to buy it if it fits for the Prestashop v1.6. Did you check the module with Prestashop v1.6. Do we need additional modifications on prestashop files such as image directories or something like that. Could you please send some instructions about how we can use this module with Prestashop?
I did not tested this with Prestashop, but this is core php and can be used in any framework/CMS as long as you can follow the pattern of that.
Your live preview is broken
Please use this url for live preview http://scriptigniter.com/php-aws-s3-integration-library/upload_file.php
It goes to a blank screen after I enter the key and database information. It gets stuck on install.php and doesn’t write to the config file. I’m on Linux 14.04
Probably you do not have write permission to write into config file.
You can avoid automatic setup while can edit the config file manually. That will be easy and straight forward. Please send me message with detail if you still face any issue.
I have emailed you with the following error when running the demo.
Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in C:\xampp\htdocs\phps3demo\phps3integration_config.php on line 28
Strict Standards: Only variables should be passed by reference in C:\xampp\htdocs\phps3demo\upload_file.php on line 7
Strict Standards: Only variables should be passed by reference in C:\xampp\htdocs\phps3demo\phps3integration_lib.php on line 325
Notice: Use of undefined constant CURLOPT_CLOSEPOLICY – assumed ‘CURLOPT_CLOSEPOLICY’ in C:\xampp\htdocs\phps3demo\awssdk\lib\requestcore\requestcore.class.php on line 610
Notice: Use of undefined constant CURLCLOSEPOLICY_LEAST_RECENTLY_USED – assumed ‘CURLCLOSEPOLICY_LEAST_RECENTLY_USED’ in C:\xampp\htdocs\phps3demo\awssdk\lib\requestcore\requestcore.class.php on line 610
Warning: curl_setopt() expects parameter 2 to be long, string given in C:\xampp\htdocs\phps3demo\awssdk\lib\requestcore\requestcore.class.php on line 610
Please advise on how to overcome all this error.
U have not updated to the latest version of php and aws sdk ?
It seems you are using PHP7 and mysql_connect is not being supported in that.
Please refer this url to use mysqli. http://www.w3schools.com/php/php_mysql_insert.asp
And yes script is not tested with PHP 7 now.
I can’t seem to upload more than 5 MB files.
I tried with the copy file to S3 demo. A 3 Mb PDF works, a 26 Mb PDF doesn’t work. Any idea why?
We are using a fast dedicated server.
Please check PHP max upload limit, it must be a limit issue.
Use, by you or one client, in a single end product which end users are not charged for. The total price includes the item price and a buyer fee.
Use, by you or one client, in a single end product which end users can be charged for. The total price includes the item price and a buyer fee.
View license details
Get it now and save up to $5
Unlimited downloads only
$29 p/m on Envato Elements
Download over 18,000 items now
Learn almost anything with
Envato Tuts+ for free
9000 free tutorials, 3000 paid courses
Designers matched perfectly to
you on Envato Studio
2000 artists ready to undertake your work