Re: Quickform 3.1 file upload on windows
| From: | Bertrand Mansion | Date: | Sun, 20 Jul 2003 23:07:01 +0000 |
| Subject: | Re: Quickform 3.1 file upload on windows | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-6679@lists.php.net to get a copy of this message | ||
<bryn@mrpath.com> wrote :
>
> Hi,
> I'm trying to get quickform to work on windows xp pro using IIS (yeah
> yeah I know)
>
> In trying to use moveuploadedfile(), it tries to append a '/' to the end
> of my string.
>
> In quickform 3.1 release, the line of code that does this is
> file.php:198.
>
> In order to facilitate crossplatform-ness, I think this should have an
> or clause also checking for "\".
Make sure you use the HTML_QuickForm_file class moveUploadedFile method, the
one in HTML_QuickForm is deprecated and will be removed in the next release..
I'll fix that in the next release, thanks for your feedback. I don't use
Windows so I have forgotten about this issue. I'll probably use
DIRECTORY_SEPARATOR global.
At the moment, you can let the first parameter empty and just pass the
second one with your complete path.
Bertrand Mansion
Mamasam