Hello All,
I’m developing an Uploader component for free use in your website/blog.
I’m using Adobe flex builder 3 for it, so the final result will be an swf you will simply embed in your real life website.
Well, this is not a release note, just an update.
I have completely changed the way you will configure the uploader, it used to be a couple fo JavaScript predefined function you should have used.
I changed it to an XML config file, it has all of the parameters I could think of.
I’m pasting the xml straight from the development environment, its really important to me to hear what you have to say, I want it to be as user friendly as possible.
Please if you think I should add another param or whatever, please drop me an email or send a contact through the contact page.
Here’s the xml
1: <?xml version="1.0" encoding="utf-8" ?>
2: <uploaderConfig>
3: <!--
4: Should be: http://www.your_domain.com/your_script.aspx/php/whatever![]()
5: -->
6: <uploadScriptUrl></uploadScriptUrl>
7: <!--
8: Should be javascript funcion that gets a single param like so: progressEvent(progress)
9: You can display this to the user, or do other things you want.
10: -->
11: <progressEventListner></progressEventListner>
12: <!--
13: Same as before, javascript function that gets a single param > Error Message
14: errorListner(errorMessage)
15: -->
16: <errorListner></errorListner>
17: <!--
18: What do you want your users to upload?
19: jpg;mpg;wmv;flv
20: all other file types you want type here will be disregarded and an error will be raised.
21: -->
22: <fileTypeAllowed></fileTypeAllowed>
23: <!--
24: This is when i make your life easier.
25: You can pass me the file size in KB, the flex handles the translation to bytes![]()
26: How?... like so:
27: KB:250
28: Please do not use a double.decimal the, thoug you won't get en Error the flex simply will disregard this
29: -->
30: <fileSizeAllowed></fileSizeAllowed>
31: <!--
32: Javascript function for displaying the message to the user
33: -->
34: <completeListner></completeListner>
35: </uploaderConfig>
You can also download the file from here: Uploader configuration file (118)
This is what the uploader looks like, I tried keeping it A.S.A.P (as simple as possible
)
Waiting for your comments.