Forums / Developer / multiple image upload to ftp folder

multiple image upload to ftp folder

Author Message

scrieler _

Friday 30 May 2008 1:50:46 am

heya, i want to upload multiple images from frontend to a ftp folder like storage/upload/-username-

i have tested some extensions like multiple binarys, but i get cracy by this..
plz help (ez 4.0)

Nathan Kelly

Monday 02 June 2008 1:24:39 am

Hey M M,

I have a blog where we allow users to upload images, they are able to upload more than 1 image but the process happens in 2 steps.

Basically we use an objectrelationlist datatype so you add one image then click on add another, when you click add another the first image is uploaded and you repeat the process.

As for adding numerous images in one hit this is difficult with eZ, as far as I know there is no extension to do this at the moment, I do have a piece of javascript that allows you to add multiple files to one SQL query but because of the way eZ handles objects it might be difficult to adapt, it is something I will be working on when time permits but until then I think your best bet will be the objectrelationlist datatype and it's templates.

Hope that helps...

Cheers
Nathan.

Pardon me while I burst into flames...

Maxime Thomas

Monday 02 June 2008 12:05:08 pm

Or if you wait sometimes and if the eZTeam works well, they will commit their multiple upload extension...

Maxime Thomas
maxime.thomas@wascou.org | www.wascou.org | http://twitter.com/wascou

Company Blog : http://www.wascou.org/eng/Company/Blog
Technical Blog : http://share.ez.no/blogs/maxime-thomas

scrieler _

Tuesday 03 June 2008 12:25:30 am

ok, i create a module with a 2 sites form.
1: one zip upload to folder/name_lastname_userID/filename
2: form with extra data and price multiplied with counted pictures in zip

my problem:
i check the datatype and if uploadedfile != ""
if the file isnt a zip i get the same page with warning,
if i want to send a correct zip after warning i dont get my 2. form, but the file will uploaded...

scrieler _

Tuesday 03 June 2008 12:50:44 am

ok, its a cache-block problem...
without cache-blocks it runs fine.

how can i exclude my module by a cache-block ?

André R.

Tuesday 03 June 2008 2:25:50 am

> Or if you wait sometimes and if the eZTeam works well, they will commit their multiple upload extension...

It will be released when ezp 4.1 is.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom