============ UNRELATED ============ A fix was made on April 12th, 2010 to the demo PHP script included in the package. The process.php script allowed any type of file to be uploaded so when uploading from another tool (not Agile Uploader) it was possible to upload other files. This is technically beyond the scope of Agile Uploader, but I don't want to send anyone away with insecure code, even if it's for example purposes and not intended to be used. PLEASE be very careful with whatever script you end up using to process and save files on your server, be it PHP or any other language. The demo script will now only allow file types used in the demos to be uploaded. ============ VERSION 2.1 ============ FIXES: - Fixed bug with preview image when attached image is the same exact size as the preview. The preview callback is called now. ============ VERSION 2.0 ============ CHANGES: - Removed flash submit button, no longer can have submit within the swf. It has to be ExternalInterface call. Figured there was not much point to keeping it inside. - Removed browse button text option, it just says "browse" now. So to get a custom button, images must be made. - Because of the above two changes and along with other code optimizations, the swf size is over 20kb less in size! FIXES: - Cleared the file data after submitting to the server (helps with multiple submits in some cases when there's no page re-direct after submitting) - Removed event listener on browse for/attach file button so a new file can't be attached until the previous one is finished resizing and encoding - Fix when files have names like image.svg.png or image.something.jpg... Additional periods mess things up and then don't provide previews -- not limited to that, also has problems with spaces and parenthesis i think too ENHANCEMENTS: - If "return_submit_response" is set to true, the server response will be passed along to the js_submit_callback - Added multiple file upload support with limit setting "file_limit" flashvar will set the limit and "js_file_limit_callback" is the function name to call when the limit is hit - Preview image callback now passes arguments to include current file name, extension, and size - Added remove functions that can be called via externalinterface to remove one or more files from being posted - Added "fill_color" variable if set (web hex or rgb) will use that color for the background matte for transparent gif/png images that are used and converted to jpg (optional setting, default is white) - Allow other files to be attached and uploaded with a file size limit. Skip resizing on these files. Just pass them along. Show in queue list though. No preview (maybe a generic file icon). -- BE SURE to specify *.JPG;*.jpg and so on because the file filter is case sensitive - Add total post size limit. Keep adding encoded size up and if it exceeds limit, don't include the file and warn by sending callback -- the total post size callback, "js_max_post_size_callback" returns name of last file trying to be added ============ VERSION 1.3 ============ ENHANCEMENTS ------------- - No longer need to post file data as base64 string, it now comes in normally. This makes back-end integration much much easier when using Agile Uploader on existing sites. ============ VERSION 1.2 ============ BUGS ----- - Fixed a bug in the preview image resizing. It is now not possible to resize an attached image larger if it doesn't meet the minimum dimensions set by the preview max dimensions (meaning it won't stretch). - Changed preview image resizing so now a preview image can actually be larger than the final/main image size. Perhaps rare, but needed somewhere. - Fixed a bug in encoding progress reporting callback that sends percentage complete numbers (string) to JavaScript. ENHANCEMENTS ------------- - Added the ability to define custom attach/browse for file button graphics (up/normal state, hover state, and click/hit state) - Changed when callback for js_attach is called. Before it was immediately after the user selected a file, but now it is after Flash has loaded the data from the file the user selected. This will help more when it comes to displaying the encoding status within the page via JavaScript callback because it will reduce the potential for a lag time. ============ VERSION 1.1 ============ BUGS ----- - Fixed bug in the encoding complete callback (flashvar: js_encode_callback). It wasn't being called before, it now will be. ENHANCEMENTS ------------- - Added preview image callback (unused if not set) so that a preview image will be sent to a JavaScript function if so desired. A base64 string is sent that will render an image properly for use within an HTLM tag or CSS or XML, etc. - There is also a callback for when the preview image is done encoding just in case the user "must" see this preview image before being able to submit the data to the server. NOTE: With this enhancement, care must be taken to note set the preview image max dimensions too large. Sending a large image through to JavaScript could lock up and crash a browser. IF the main image's resize max dimensions are smaller than the preview image's max dimensions set in the flashvars, then the preview image will use the main image's data as a safety. Why would the preview image need to be large than the final image that gets saved on the server? In this event, the same image is used so there won't be a double encoding process and the preview image will appear almost instantly. Likewise, if the preview image's max dimensions are exactly the same as the main image's max dimensions, it won't encode the preview image again, it'll use the existing image. Also note, that a 4mb image was tested as the preview with large max dimensions and it did not crash Firefox or bring up the "stop script" dialog. It just locked up the browser for a little bit. Again, take care with these dimension settings. Also the preview image is disabled by default. Setting the callback flashvar (js_preview_callback) enables it.