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

eZ debug

Timing: Jan 18 2025 04:10:41
Script start
Timing: Jan 18 2025 04:10:41
Module start 'content'
Timing: Jan 18 2025 04:10:42
Module end 'content'
Timing: Jan 18 2025 04:10:42
Script end

Main resources:

Total runtime0.8707 sec
Peak memory usage4,096.0000 KB
Database Queries207

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0073 588.8672180.8281
Module start 'content' 0.00730.7094 769.6953660.9141
Module end 'content' 0.71670.1538 1,430.6094337.0547
Script end 0.8706  1,767.6641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00440.5023210.0002
Check MTime0.00160.1841210.0001
Mysql Total
Database connection0.00050.052310.0005
Mysqli_queries0.783389.96702070.0038
Looping result0.00330.38032050.0000
Template Total0.840396.520.4201
Template load0.00230.264320.0012
Template processing0.838096.247120.4190
Template load and register function0.00020.022510.0002
states
state_id_array0.00120.133710.0012
state_identifier_array0.00140.161320.0007
Override
Cache load0.00190.2200340.0001
Sytem overhead
Fetch class attribute can translate value0.00190.220150.0004
Fetch class attribute name0.00100.115590.0001
XML
Image XML parsing0.00210.241050.0004
class_abstraction
Instantiating content class attribute0.00000.001890.0000
General
dbfile0.00290.3320400.0001
String conversion0.00000.001230.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 25
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs