[ZODB-Dev] upload a file of 6 MB with the function manage_upload

Alan Runyan runyaga at runyaga.com
Wed Apr 1 09:49:50 EDT 2009


This is not a ZODB question.  Ask on Zope User's mailing list.

2009/4/1 Sandra <elsandram at yahoo.fr>:
> Hi all,
> I want to upload a file of 6 MB with the function manage_upload
>
>
> def
>
> manage_upload(self,file='',REQUEST=None):
>
> """
>
> Replaces the current contents of the File or Image object with file.
>
> The file or images contents are replaced with the contents of 'file'.
>
> """
>
> if self.wl_isLocked():
>
> raise ResourceLockedError, "File is locked via WebDAV"
>
> data, size = self._read_data(file)
>
> content_type=self._get_content_type(file, data, self.__name__,
>
> 'application/octet-stream')
>
> self.update_data(data, content_type, size)
>
> if REQUEST:
>
> message=
>
> "Saved changes."
> return self.manage_main(self,REQUEST,manage_tabs_message=message)
>
>  in python/OFS/image.py. But my Programm run without end.
> I'm making some mistake ?  Anybody knows any way to solve
> it ?
> N.B: i am using Relstorage + Oracle 10i.
>
> Thanks in advance
>
>
> _______________________________________________
> For more information about ZODB, see the ZODB Wiki:
> http://www.zope.org/Wikis/ZODB/
>
> ZODB-Dev mailing list  -  ZODB-Dev at zope.org
> http://mail.zope.org/mailman/listinfo/zodb-dev
>
>



-- 
Alan Runyan
Enfold Systems, Inc.
http://www.enfoldsystems.com/
phone: +1.713.942.2377x111
fax: +1.832.201.8856


More information about the ZODB-Dev mailing list