Reply to Re: file 'upload'

Your name:

Reply:


Posted by Kimmo Laine on 12/20/05 10:21

"james troy" <jetroy2@comcast.net> wrote in message
news:D5udnTKsbaVwGDrenZ2dnUVZ_t2dnZ2d@comcast.com...
>
> I am trying to use a form that is usually used for file uploads to obtain
> a path/filename.
> The form I'm using is:
>
> <form id="f1" action="e.php" method="get">
> <input type="hidden" name="MAX_FILE_SIZE" value="30000" />
> select file: <input name="cwdrf" size="55" type="file" value=""><br>
> <input type=submit value=submit >
> </form>
>
> I'd like to get the path/ filename to the file, e.php:
> <?
> echo $_REQUEST['cwdrf'];
> ?>
>
> Although the text window in the form shows the full path, only the file
> name gets through to e.php.
> Is there some predefined variable that will get the full path?


It should not concern the server script, what the original path and file
location of the uploaded file was, thus no such information is sent to the
server. Just the name of the original file. I'm wondering what were you
going to do with the path information. Whatever the reason, you can't do
that using the file field, it simply doesn't send such information.

Use print_r($_FILES); to see what information of the file is provided in
php.

--
"En ole paha ihminen, mutta omenat ovat elinkeinoni." -Perttu Sirviφ
antaatulla.sikanautaa@gmail.com.NOSPAM.invalid

[Back to original message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация