sfSWFUpload Plugin for Symfony
sfSWFUpload Plugin for Symfony
I published my first symfony plugin in symfony plugin trac.
This plugin offers helpers that permit simple use and configuration of SWFUpload.
SwfUpload is a combination of JavaScript and Flash that provides advanced browser upload control.
SWFUpload Features:
* Multiple File Selection
* File Upload Progress
* Custom Limits for File Size and Number of Uploads
* Filter by File Type ie. *.jpg
* File Queue
* Customize the Browse Control
* Degrades Gracefully
More info over SWFUpload:
http://swfupload.org/
http://code.google.com/p/swfupload/
You can use this plugin with included upload action: SWFUpload/upload (very simple example )
or you can develop your own upload action.
sfThumbnailPlugin is required from included sfSWFUpload/upload action.
Download and installation instructions are here: http://trac.symfony-project.com/wiki/sfSWFUploadPlugin
This plugin was tested against Symfony version 1.0.7 - 1.0.16
If you have any questions or feedback feel free to contact me at maurocasula at gmail.com.
Best Regards.
Mauro Casula.
www.symfony-framework.com
SWFUploadPlugin offers 2 helpers:
- swf_upload_javascript($upload_url, $post_params = array(), $options = array())
Include javascript functions and set up swfUpload.
$upload_url: the url of the script responsible of upload files
$post_params: array of additional post variables you want to send from sfwUpload to upload script
$options: array of options for overwrite the default plugins settings ( app.yml )
accepted options:
file_size_limit: “100 MB”
file_types: “*.jpg;*.gif;*.png”
file_types_description: “Supported Files”
file_upload_limit: 100
file_queue_limit: 0
debug: “false”
- swf_upload_standard_html()
Include html tags and include flash movie using plugin settings
ScreenShoots:
No Responses to “sfSWFUpload Plugin for Symfony”
You can leave a response, or trackback from your own site.

