File uploading in two steps

Author Message

Alex xxx

Wednesday 23 April 2008 12:57:30 am

Sorry for my bad english :)

I have content class "UploadedFile" with attributes:
Description (datatype: text line),
UploadDate (datatype: date),
Password (datatype: text line)
UploadFile (datatype: file)

I want to create form for creating new "UploadedFile" objects in two steps:
1 step: Only uploading file
2 step: Fill "description", "password" fields and publish object

How I can create this "wizard" form?

Thank you :)

Alex xxx

Wednesday 23 April 2008 5:15:53 am

The form with file upload field must be visible at the main page (not after click at some button), so, content object "uploaded file" must be created when the file is already uploaded.

I have no ideas how to do this... please, help!

André R.

Wednesday 23 April 2008 7:33:33 am

Take a look at the content/upload module, it will allow you to upload content directly, and settings from content.ini will be used to determinate what class should be created based on file type.

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

Alex xxx

Wednesday 23 April 2008 8:10:13 am

Thank you for answer.
I have understood how to upload a file, but there is question - how to add additional information about the file right after uploading, and how to link this information with uploaded file.

André R.

Wednesday 23 April 2008 8:30:47 am

You can have object name and location as form values while uploading (browse to /content/upload to see form input names if you haven't already), normally you will be redirected to the uploaded file, and there you can have a edit button to let the user further edit the object(see for instance in the forum templates for how this edit button should be set up).

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

Alex xxx

Wednesday 23 April 2008 8:45:11 am

I want to view object edit form (to fill information about uploaded file) RIGHT AFTER upload.
And object must be published (or visible, as variant) only after user filled second form.
Can I specify content/upload to redirect to object editing mode after the upload?

Alex xxx

Wednesday 23 April 2008 8:56:28 am

Example:
http://img217.imageshack.us/my.php?image=uploadhq1.jpg

André R.

Wednesday 23 April 2008 11:53:26 am

> Can I specify content/upload to redirect to object editing mode after the upload?

No, you'll have to create your own module / view for uploading to accomplish that, since content edit needs the object id witch isn't created before the upload is completed.

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

Alex xxx

Wednesday 23 April 2008 12:29:16 pm

Thank you, I'll try to create own module.

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