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 ]);).
unset($_SESSION['AU_FILES'][ $fileId ]);
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.
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.
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 …?
and how to set file type and file size ? -bro
how to set max_file_size in upload.php and fileAllowed in .js ? help me bro i nedd ur help
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 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
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
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 (http://jsfiddle.net/29GCm/). 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?
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 !?
maybe I didn’t get your question entirely, but are you trying to issue an actual CORS-enabled request? Because this error occurs, when your browser doesn’t support it.
What is your setup? Are you on different domains? What did you set to true exactly?
Hi, I try to upload files from my site to another domain for do this I set upload.php file adres from server domain in js class and I set tru cors setting in js file and im using google chrome and test CORS manytimes on my web server in local on this other codes about CORS and everything was ok . both of my domains are on local I use wampdeveloper for make webserver ! actually I like to know for doing this in all what am I to do ?
So lets say that you want to make the AwsmUploader to work on domain_A and upload data to domain_B. Then, in the upload.php that resides on the server on domain_B, you need to set the header “Access-Control-Allow-Origin” to domain_A, so that it can receive data from domain_A.
You don’t need to change anything to allow pre-flighted requests, that’s enabled by default.
thQ its work! its amazing i try to use this for video sharing script and what am i should to do to safe this connection with my site and my server exept set doamin in header of upload.php can i add for example key between both of them!? in all what am i should to do for hiegh securty connection between my site and server ?!
Its amazing dude thanx for help
I have problem when i try to upload larg file example when i submit 500mb file prgress bar when complited just 256kb or 500kb of that file is saved !!
Ok, does it always happen? What about smaller files?
yes man , always. smaller than 500kb is ok not problem.
Are you using a specific (older) browser that is probably not entirely supported? What’s your configuration?
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
$fileAllowed = false;
$fileAllowed = true;
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%.
Once an upload finished, you can easily reset the progress to zero by calling it this way:$( ".selector" ).awsmProgressBar('progress', 0);
$( ".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.
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
Unlimited graphic downloads & digital courses. Only $29/month
22,000+ templates & 1,000+ courses
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