Help with settings

Hi i need to change some settings on the script

I need maximum file size 400 KB minimum width 400 pixels minimum height 400 pixels (for image uploads)

thats all

where and what to edit

great script btw

gyphie's picture

File size client size, other stuff server side

You can restrict the file size with SWFUpload using the upload_size_limit setting. Just set it to "400KB". All the image processing and check has to be done on the server side.

ok good but where is the

ok good but where is the upload_size_limit setting ? which file ?

gyphie's picture

Constructor

If you look in the demos this will be more clear.

You construct a JavaScript anonymous object with name value pairs for each setting. You then pass this object to the SWFUpload constructor to initialize SWFUpload on the page.

You create another JavaScript file to hold your event handlers (if you want). Then you wire up events on buttons and things on your page to trigger file browsing and uploading.

The documentation lists all the available settings.