Forums

integration of a flash image uploader

sako 17 Jun, 2010
Hi,

first sorry for my english, I do my possible!

I found an amazing widget for uploading image. I want to know if it's possible to integrate the flash component to your chronoforms and how we can do this.

The concept is very simple, all the work is done on the client side(browser). The image is resize in the flash component and AFTER upload to the server. You also can set an quality rate. For some big sites who have a lot of traffic, this solution can save a lot of bandwidth and don't paralise the site during the upload. For example, it is useless to upload very large images(9999999x999999!) for galleries, 800x600 it's enough.

The widget is on a French site but it is very easy to understand. You can download it at: http://www.xter.fr/download/index.php

you can test online the application at: http://www.xter.fr/ImageUploader/index.html

I tested it with an 1.86Mo image size. After the upload the image= 187ko.😀

thanks you
sako
nml375 17 Jun, 2010
Hi sako,
It is fully possible, but takes some work. I am finishing up on a similar project for a client, though using a different flash uploader. I didn't find much of a documentation for that uploader, so I can't tell you how you should achieve all needed settings for this to interact neatly with Joomla and ChronoForms.

One main concern though, is that this uploader appears to use HTTP_RAW_POST_DATA, rather than name=value pairs. You'll still be able to embed the option=com_chronocontact&chronoformname=whatever&task=extra data in the url, but I can't say whether Joomla will like the post data..
You'll also have to provide session identifiers, since the Flash player does not take care of this for you.

With the data above, I choose to use the extra task in ChronoForms, so you'll have to use the extra code boxes on the html code tab. Be adviced, that the file upload is completely separate from the rest of the form submission, so your up for quite some work if you'd like to associate the uploaded file with the rest of the form data.

The uploader I'm currently using is the SWFUploader (http://swfuploader.org/) which supports Image resizing and great user customization. It also uses proper form encodings, which lets Joomla and ChronoForms retrieve the data with ease.

/Fredrik
This topic is locked and no more replies can be posted.