Posted by jojo on 10/24/84 11:59
bernhard.heinzel@gmail.com wrote:
>
> I got a little problem with an upload form. Everytime I post the form
> it only submits the filename without the path.
it does not only send the filename but the whole file...
> But I need the path.
what would you do with the path if you could get it? you cannot read
local files..
>
> So could anybody help?
>
> Here is the code:
>
> <p>New file.</p>
> <form action='script.py' method='post'>
> <table>
> <tr><th>File</th><td>:</td><td><input type='file'
> name='articlefilepath'></td></tr>
> </table>
What's the need of that table? use the <label>-element here:
<form action='script.py' method='post'>
<label for='file'>File: </label>
<input type='file'name='articlefilepath' id='file'>
> <p>
> <input type='hidden' name='task' value='insertfile'>
> <input type='submit' value='Insert Article'>
> <input type='reset' value='Clear'>
> </p>
> </form>
>
Navigation:
[Reply to this message]
|