Page 1 of 1

Ajax Uploader

Posted: 2014-03-15 02:28
by energylevels2012
Anyone recommend an ajax loader to integrate into to an ADDT form - need a thumbnail preview & progress, preferably easy to drop into the existing ADDT form.

Thanks ....

Re: Ajax Uploader

Posted: 2014-03-15 16:27
by Fred
I am using Plupload and it works a charm.

http://www.plupload.com/

Re: Ajax Uploader

Posted: 2014-03-17 01:00
by energylevels2012
Thanks that looks promising - You dropped it into an existing ADDT form easily?

Re: Ajax Uploader

Posted: 2014-03-17 10:19
by Fred
Yes getting it to upload was the easy bit.

Take a page and add a couple of lines and it works.

The trick was to get a way to add descriptions afterwards.

What I did was to insert the php session_id as one of the fields into the database.
Then after completing the upload, redirected to a nextentio list that filters the images based on the current session_id.
Edit the images via a nextensio form.

Re: Ajax Uploader

Posted: 2014-03-17 22:19
by energylevels2012
HI Fred - you don't by any chance have a working example I could look at ??

Re: Ajax Uploader

Posted: 2014-03-18 10:25
by Fred
Register here at the development site http://www.leadingwebexposure.com and I will give you access to admin.

Also check your email

Re: Ajax Uploader

Posted: 2014-03-19 03:23
by energylevels2012
HI Fred

Thanks, I registered, email: paulm@webspectrum.co.uk


Cheers....

Re: Ajax Uploader

Posted: 2014-05-01 18:17
by energylevels2012
HI Fred - Can give me some tips on how you are integrating PLUPLOAD with nextensio form/insert - are you adding filenames to DB as well or just uploading to folders with unique names?

Re: Ajax Uploader

Posted: 2014-05-02 13:19
by Fred
The initial upload is not near any nextensio forms or lists.

Inside the plupload folder is upload.php that does the actual uploading.
All you need to do is to add a mysql query to insert the file_name into your photogallery database once the image has been uploaded.
Then once all the images is uploaded have it redirect to a nextensio list where you can edit the descriptions or do whatever you want.

So here is my workflow.
Have a nextensio list with all the gallery.
Edit a gallery with a nextensio form that has two extra buttons (apart from update and Cancel) called "Add Photos" and "Manage Photos"
Add Photos takes me to a page where plupload is plugged into a normal php page and the images are added for uploading.
Clicking "Start Upload" will call upload.php in the plupload folder and upload the images one-by-one.
Once completed it redirects to a post-upload page that is basically the same as the second button on the gallery nextensio list (Manage Photos) This loads a new nextensio list with all the photos in that specific gallery.

Hope that makes sense...

Re: Ajax Uploader

Posted: 2014-05-13 02:50
by energylevels2012
thanks ...