Think of what your asking, how could you possibly rename a file before
upload??? It means you would need access to the system where the file
resides.


On Saturday, July 17, 2010, ClintR <[email protected]> wrote:
>
> Hi,
>
> I've been going through the reference guide, this board and Google trying to
> find out how to rename a file before it's uploaded so old files don't get
> overwritten in case filenames are the same. Is it even possible in ZF 1.10?
>
> The reference guide puts nothing in to context so I'm having trouble
> understanding where to place the code it gives for using Zend_File_Transfer.
>
> I found a solution on this board from 2008 that included registering the
> $_FILES superglobal in the bootstrap using:
>
> Zend::register('files',$_FILES);
>
> However, that gives me this error:
> Fatal error: Class 'Zend' not found in
> /Users/Clintonia/Sites/shoppingcenter/application/Bootstrap.php on line 12
>
> So, no luck with that.
>
> Does anyone have a working example or a link to a how-to that actually
> covers this?
>
> Thanks.
> --
> View this message in context: 
> http://zend-framework-community.634137.n4.nabble.com/Renaming-file-before-upload-tp2292597p2292597.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
>

Reply via email to