2009/4/30 Thomas Weidner <thomas.weidner@gmx.at>:
> If you want to have the filename of the original file you must call
> getFileName() BEFORE you receive the file.
> Reason is that the filename will be changed by the rename filter when you
> receive the file.
>
> So, simply call getFileName before calling getValues() or receive().
>
> Greetings
> Thomas Weidner, I18N Team Leader, Zend Framework
> http://www.thomasweidner.com
>
> ----- Original Message ----- From: "Емил Иванов / Emil Ivanov"
> <emil.vladev@gmail.com>
> To: <fw-mvc@lists.zend.com>
> Sent: Thursday, April 30, 2009 3:07 PM
> Subject: [fw-mvc] How to fetch the original file name from upload element
> (BC break?)
>
>
>> In the code I was doing
>>
>> $originalFileName = $attachment->getFileName(null, false);
>>
>> to get the name of the file uploaded, but since I use the rename
>> filter now I get the name after the renaming.
>>
>> It used to work?!?
>>
>> Regards,
>> Emil
>>
>> --
>> My place to share my ideas:
>> http://bolddream.com (under contruction)
>
>
--
My place to share my ideas:
http://bolddream.com (under contruction)
没有评论:
发表评论