scriptigniter

scriptigniter supports this item

Supported

32 comments found.

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.

Thanks

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.

Thanks

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 :(

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

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

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

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

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.

Thank you.

U have not updated to the latest version of php and aws sdk ?

Hi, 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.

Hello,

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.

ht1080z

ht1080z Purchased

Hi, preview seems to be broken again. Any other link where i can check a working sample? Anyway, i search for a solution where i can upload to S3 via PHP and/or javascript and after store the filenames to mysql db into my custom CMS. Can i do this with your Integration Library?

hi, want to use this for a document mgt system. Is there methods to list all files in a bucket? And is there any limits to file uploads? thanks

Actually no, currently do not have any method that list all files. Please send an message to me for detail. We provide customize solution also. In Document management system just the list will not not be sufficient, We need to store meta data into local database, Sharing of files with users via email link etc are also required

Hi there! I’ve been using this script for a while and it works perfectly. But I’ve noticed that it adds a random number to the end of the file name (i.e “cover-b815021270781563.jpg”).

That was not a problem until now, there’s one part of my application that I’ll need to upload the file with exactly the same name as it’s saved in my user’s computer.

How would you recommend me to achieve that? I’m using do_upload_s3() function. Cheers!

in PHP S3 script the method is uploaded_file_to_s3 and if you see documentation/method it says function uploaded_file_to_s3($file_array, $s3_path = ”/”, $do_rename = FALSE) {

third param handle if you want to rename it or not.

do_upload_s3 is Codeigniter S3 script function, for that you can use make_unique_filename config to control rename. $config[‘make_unique_filename’] = true;

$this->_upload_file($config, 'file');

Thanks for the reply. But it’s not so clear how would I implement that config. I’ve tried using ‘make_unique_filename’ in a number of ways but it doesn’t seem to change its behavior. Could you give me an example with this code:

$config['allowed_types'] = 'gif|jpg|png';
$config['max_size']    = '2048';
$this->load->library('upload', $config);
if (!$this->upload->do_upload_s3('cover')) {
    // do stuff
}
Cheers!

Please use like below $config[‘allowed_types’] = ‘gif|jpg|png’; $config[‘max_size’] = ‘2048’;

//Add this line $config[‘make_unique_filename’] = false;

$this->load->library(‘upload’, $config); if (!$this->upload->do_upload_s3(‘cover’)) { // do stuff }

This is related to Codeigniter script, so please add the comment into that library at here https://codecanyon.net/item/codeigniter-aws-s3-integration-library/4993914

Sent you an email and never got an answer. Your demo file from browser to amazon s3 has a lot of js errors. You should fix it.

Hi, sorry to hear that. Can you please send an email again as i dont see any such in inbox. Please mention error detail which you facing. I will try to help you as soon.

by
by
by
by
by
by