Need some hints on file uploading

Author Message

Lex 007

Tuesday 29 March 2005 8:56:19 am

Hi,

Here is the situation :
I have a new custom class with a "binary file" attribute, and a filepath attribute. Users are supposed to put documents on a file server, and the web server can access the file server.

I would like to run a cronjob that :
- checks if the file of the filepath exists
- deletes previous file (if it exists)
- uploads the new file
- and publishes the new object.

Could anyone give me some hints on how file uploading works in eZ Publish 3.5.1 ? Do you think my cronjob project is doable ?

Thanks in advance !

Lex

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 20 2025 03:59:18
Script start
Timing: Jan 20 2025 03:59:18
Module start 'layout'
Timing: Jan 20 2025 03:59:18
Module start 'content'
Timing: Jan 20 2025 03:59:18
Module end 'content'
Timing: Jan 20 2025 03:59:18
Script end

Main resources:

Total runtime0.0255 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.0084 589.1641152.6250
Module start 'layout' 0.00840.0050 741.789139.4609
Module start 'content' 0.01340.0080 781.250085.3359
Module end 'content' 0.02140.0041 866.585930.3047
Script end 0.0255  896.8906 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.003814.8381140.0003
Check MTime0.00155.8099140.0001
Mysql Total
Database connection0.00238.852610.0023
Mysqli_queries0.003513.756630.0012
Looping result0.00000.074710.0000
Template Total0.003413.310.0034
Template load0.00145.554010.0014
Template processing0.00207.772010.0020
Override
Cache load0.00083.106210.0008
General
dbfile0.00114.424980.0001
String conversion0.00000.039240.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.0002 secs