Ajax Uploader

Any tips and tricks that has to with the ADDT that doesn't fit into one of the other categories
energylevels2012
Posts: 58
Joined: 2012-07-22 16:41

Ajax Uploader

Post by energylevels2012 » 2014-03-15 02:28

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

User avatar
Fred
Site Admin
Posts: 491
Joined: 2010-02-15 12:10
Location: Armagh, Northern Ireland
Contact:

Re: Ajax Uploader

Post by Fred » 2014-03-15 16:27

I am using Plupload and it works a charm.

http://www.plupload.com/

energylevels2012
Posts: 58
Joined: 2012-07-22 16:41

Re: Ajax Uploader

Post by energylevels2012 » 2014-03-17 01:00

Thanks that looks promising - You dropped it into an existing ADDT form easily?

User avatar
Fred
Site Admin
Posts: 491
Joined: 2010-02-15 12:10
Location: Armagh, Northern Ireland
Contact:

Re: Ajax Uploader

Post by Fred » 2014-03-17 10:19

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.

energylevels2012
Posts: 58
Joined: 2012-07-22 16:41

Re: Ajax Uploader

Post by energylevels2012 » 2014-03-17 22:19

HI Fred - you don't by any chance have a working example I could look at ??

User avatar
Fred
Site Admin
Posts: 491
Joined: 2010-02-15 12:10
Location: Armagh, Northern Ireland
Contact:

Re: Ajax Uploader

Post by Fred » 2014-03-18 10:25

Register here at the development site http://www.leadingwebexposure.com and I will give you access to admin.

Also check your email

energylevels2012
Posts: 58
Joined: 2012-07-22 16:41

Re: Ajax Uploader

Post by energylevels2012 » 2014-03-19 03:23

HI Fred

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


Cheers....

energylevels2012
Posts: 58
Joined: 2012-07-22 16:41

Re: Ajax Uploader

Post by energylevels2012 » 2014-05-01 18:17

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?

User avatar
Fred
Site Admin
Posts: 491
Joined: 2010-02-15 12:10
Location: Armagh, Northern Ireland
Contact:

Re: Ajax Uploader

Post by Fred » 2014-05-02 13:19

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

energylevels2012
Posts: 58
Joined: 2012-07-22 16:41

Re: Ajax Uploader

Post by energylevels2012 » 2014-05-13 02:50

thanks ...

Post Reply