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.
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.
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 ?
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.