MrShoenel does not currently provide support for this item.

30 comments found.

Hello! Script works great for me! I’m wondering where would be a good place in the PHP to put a post-upload command to run on the files after upload is complete, such as virus scan or e-mail report. Thanks for any help!

A good spot might be in upload.php:149 (the empty line right before unset($_SESSION['AU_FILES'][ $fileId ]);). You’re welcome :)


I just tried the demo is amazing. But, I have 2 questioms:

1) I not found where to configure the path, user and password to access the server side. Please, can you show me an example.

1.1) I possible to change the destination path in real time, to store files in diferent places?

2) This one is very important for me. If there a way to store files in Amazon S3 or some similar cloud storage?.

Thank you in advanced.

  1. The path can be configured using the method setUploadPath(). If you need to supply credentials, please use the method setHttp401Credentials() that accepts both a username and a password.
    1. In that case I suggest you call setUploadPath() between uploads. Register an event-handler to get notified before an upload starts and alter the path accordingly. If you aim for using the same upload path but still store in different locations, you might want to supply extra parameters to the upload.php file. You can do that by using the method setUploadParam().
  2. Since the AwsmUploader transmits the files chunked, there is no way to directly post from your HTML-frontend to S3. You can, of course, trigger that upload in your upload.php file and send the whole file to S3 using a third-party library. Amazon provides the AWS PHP SDK for that purpose.

I hope that answered some questions, let me know if you require more help :)

Edit: Please find the AwsmUploaders’s complete documentation here. It’s included in your purchased package as well as part of the demo interface.

Hi, does this script allow for javascript upload to another server where the PHP is loaded? (cors) So I am using some cloud hosting for my html, and then I want to upload the files but the php that the script would use, would be located on another server.

Yes it does! You can configure which origins are allowed in the upload.php on your server elsewhere :) In the JavaScript part where you set up the AwsmUploader, just update the upload Url to point to that server then.

Hi Sorry i cant speak en well because im persian. your uploader is ver good & nice ;) but i have one qustion ? how to click on DROP suport box and open win file manager without input type file …? ;)

Hi, to answer your first question: You can either use the built-in functionalities for dropping files onto a designated area or use a file-input (in the demo available as well). It doesn’t quite matter where the File-object comes from, you can then hand it over to the AwsmUploader using its method enqueueFileForUpload(File file).

Concerning your other questions: You should not set the allowed maximum upload size in PHP, as the AwsmUploader was especially made to work around that limitation :)

If you want to constrain the file size anyways, use the method setMaxUploadSize(int numBytes) in JavaScript.

If you want to disallow uploading a certain filetype, you can use the method addNotAllowedRegex(RegExp regex) that will be matched against potential files’ names before they even start uploading.

And, last but not least, I strongly recommend you check out the documentation as all your questions are extraordinarily well covered there :)

thX Man . God bless u :)

You’re welcome :)

Hi it works great. If possible please add following features in next version.

1. Store File data into a database

3. store files security to File (no one will get real file location)

4. generate download link

5. generate download link for a time period. (very use full for digital product selling sites)

6. generate delete link

Hi, thanks for your suggestions, I’ll keep that in mind for the next release.

Although it’s already possible to store files securely, without exposing the real file location. It’s possible as well to create download-links (I showed how to do this in another comment using this fiddle ( If you create links like that, it’ll be quite easy to create a delete-link as well.

Your first to last point would require the AwsmUploader to be connected to some sort of backend that provides such business logic.

Hello Shoenel !! I get the AwsmUploader with MVC 4 ?? Is there any demo?

Hey arturrj,

no, there is no demo with .Net available, the AwsmUploader is PHP only. Find the demo here.

Hi MrShoenel, i try ti use this between my site and my server and i set true setting in js class with true link of upload.php and true setting in upload.php of server but when u try to upload js say error : Can not create CORS-enabled asynchronous request. / and im use this in local on 2 doamin !?

no i just use updated google chrome and i just chenge setting you said that.

Did you solve your problem in the meantime? If not, please contact me via email.

not actually . i connect you via email soon.

I was wondering if there is an easy way to tell the script what file extensions I do want to allow, and exclude everything else? I see there’s a $notAllowed variable, but Im not very good with regex.


I think in your case it’d be better to work with a whitelist instead of a blacklist. So, you probably want to turn around the mechanism by

  • setting $fileAllowed = false; initially
  • rename $notAllowed to $allowed
  • setting to $fileAllowed = true; when breaking the loop (when you match a file’s name that is allowed)

Regexes aren’t too difficult; basically you can replace the preg_match(..) by any other mechanism of your choice (e.g., strstr(..)).

If you want to stick to regexes, just add a pattern for each allowed extension to the array like this: '/\.txt$/i'. Short explanation: the slashes just delimit the regex. ‘txt’ is one exemplary ending here. The dot in front of it has to be escaped by a backslash, otherwise it’d match any character. The $-symbol denotes the end of the regex – that means that the string (the file’s name) must end here and cannot include any more characters.


Is AwsmUploader compatible with wordpress, and does it come with a wordpress installable file on purchase?


There is no wordpress installable file unfortunately. The AwsmUploader is stand-alone only (for now).


i just bought AwsmUploader and AwsmProgressBar but now i cannot find a documentation how to use it like in your example.

I just downloaded your init.js from your server and set the path variables to my own, but now some things like thumbnail-preview etc are not working. So this seem not the right way.

Can you help me?

I could fix it by myself.

But now another question: is there a way to reset the ProgressBar to 0% (grey) after a successful upload. Maybe after 2-5 seconds. At the moment it stays green at 100%.

Thank you


Once an upload finished, you can easily reset the progress to zero by calling it this way:
$( ".selector" ).awsmProgressBar('progress', 0);

The AwsmProgressBar already provides a callback for when the animation to a certain percantage finished. You could use that to set your desired timeout and then re-set the progress.

But since you have it interwoven with the AwsmUploader, I recommend registering a callback for its event onFileUploadCompleteHandler that you may intercept to re-set the progress to zero.

The documentation to the uploader and the progressbar comes with your purchase. However, if you prefer to refer to the online version, it can be found here.

Best regards :)