extension with file upload field

Author Message

Sergey Ganev

Tuesday 16 March 2010 4:20:17 am

Hello,I'm creating an extension which will give a possibility to a user to fill in a form with FILE field. The file has to go to a database (MySQL). With other text fields i have no problem - thanks to Felix and his Extension Article.I understand that there will be file retrieving problem afterwords. That information would be also usefull.Could anyone just give me a clue where to find information how to do that. I hope the solution is there and not quite difficult.Thanks in advance

Sergey Ganev

Wednesday 17 March 2010 3:24:00 am

Found a solutionhttp://www.tizag.com/phpT/fileupload.phpthanks to Felix Woldt

Sergey Ganev

Wednesday 17 March 2010 3:25:15 am

Found a solution
http://www.tizag.com/phpT/fileupload.php

thanks to Felix Woldt

Marco Zinn

Tuesday 23 March 2010 3:39:52 pm

What about http://projects.ez.no/enhancedezbinaryfile/ ?

This will save the file to harddisc . May be an option for you.

Marco
http://www.hyperroad-design.com

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 29 2025 23:48:46
Script start
Timing: Jan 29 2025 23:48:46
Module start 'layout'
Timing: Jan 29 2025 23:48:46
Module start 'content'
Timing: Jan 29 2025 23:48:46
Module end 'content'
Timing: Jan 29 2025 23:48:46
Script end

Main resources:

Total runtime0.0134 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0049 588.1406151.2109
Module start 'layout' 0.00490.0028 739.351636.6641
Module start 'content' 0.00770.0039 776.015690.1563
Module end 'content' 0.01160.0017 866.171933.9922
Script end 0.0133  900.1641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002417.7399140.0002
Check MTime0.00107.7765140.0001
Mysql Total
Database connection0.00064.852310.0006
Mysqli_queries0.002518.803930.0008
Looping result0.00000.105310.0000
Template Total0.00139.510.0013
Template load0.00096.716110.0009
Template processing0.00042.785010.0004
Override
Cache load0.00064.768410.0006
General
dbfile0.00107.585580.0001
String conversion0.00000.083940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs