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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 30 2025 21:25:04
Script start
Timing: Jan 30 2025 21:25:04
Module start 'layout'
Timing: Jan 30 2025 21:25:04
Module start 'content'
Timing: Jan 30 2025 21:25:05
Module end 'content'
Timing: Jan 30 2025 21:25:05
Script end

Main resources:

Total runtime1.1013 sec
Peak memory usage8,192.0000 KB
Database Queries70

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0039 588.1563151.2109
Module start 'layout' 0.00390.0033 739.3672220.6875
Module start 'content' 0.00721.0933 960.05474,565.2109
Module end 'content' 1.10050.0008 5,525.265615.8438
Script end 1.1013  5,541.1094 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.2828160.0002
Check MTime0.00110.1023160.0001
Mysql Total
Database connection0.00070.061410.0007
Mysqli_queries1.011691.8517700.0145
Looping result0.00070.0593680.0000
Template Total1.055595.820.5278
Template load0.00190.168920.0009
Template processing1.053795.674920.5268
Template load and register function0.00130.120810.0013
states
state_id_array0.00200.178410.0020
state_identifier_array0.00180.162120.0009
Override
Cache load0.00160.1427340.0000
Sytem overhead
Fetch class attribute can translate value0.00210.187840.0005
Fetch class attribute name0.00190.168890.0002
XML
Image XML parsing0.00180.162840.0004
class_abstraction
Instantiating content class attribute0.00000.001590.0000
General
dbfile0.00260.2402290.0001
String conversion0.00000.000540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 25
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs