----- Original Message ----- From: "Nick Gr" <[EMAIL PROTECTED]>
To: "Jonathan" <[EMAIL PROTECTED]>
Cc: <zope@zope.org>
Sent: Monday, September 11, 2006 10:14 AM
Subject: Re: [Zope] Upload file to server for encoding...

Using ExtFile I just could have access to my file systems, how can I use it to upload a file from my website visitors pc ?

You use an html form to get the user to specify which file they want to upload from their pc. Your form handler routine will receive a File upload object, here's some info on this:


C -> I think I will need also some kind of progress indicator so the user can know when the encoding is done (some time takes more than a minute)
This may help:

That's a solution but do you know something more GUI like a progress bar ?

Do a google search for:  zope progess indicator

. Any ideas how the user will download back the file? should the download begin automatically after the encoding ?
If your external method commits the transaction, a new zope object will be created. You could then do a response.redirect that causes the user's browser to access the new object.

My python program change the original file, it doesn't create another one after the encoding. Can I use the same Zope object or it doesn't work that way ?

If the changes have been committed to the zope object, then when the user accesses that object the user will see the changes (just make sure the cache control headers are set so that the original object does not get cached in the user's browser)


Zope maillist  -  Zope@zope.org
**   No cross posts or HTML encoding!  **
(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to