Dynamically populating Placeholder?

  • Thread starter Thread starter Ben Arthur
  • Start date Start date
B

Ben Arthur

Hi,
I have a html<input> of file type and i would like the user to upload
multiples times using the same input.so i would like to clear the
input.PostedFile.FileName eveyrtime they click on say a button, n then
show the filename in a placeholder(is that the best option or will a
label do?), and the filenames shud get appeneded so in the end, it would
show the names of all the files selected ...
any ideas greatly appreciated..
thanks
ben
 
Hi, Ben Arthur,

On *one* post to the server *one* <input type=file> control can upload *one*
file (or nothing if left empty). Apart from this, you *can't set* the value
property from client-side script for security reasons.

I think you should reconsider your design.

Greetings
Martin
 
Hi Martin,
thanks for ur quick reply...
let me explain what i had planned in greater detail....i did not want to
upload the file but hold it in memory perhaps, and on submit, iterate
through the count of files and upload them one by one...let me know if
this changes anything or my design idea is not possible...
appreicate ur help
ben
 
Hi, Ben Arthur,

There is no "memory" where you can "hold" files on the browser.

Apart from this

*only* the <input type=file> control can post a file to the server
AND
*only* the user can set the value of the <input type=file> control

So, you will have to either upload the files one by one or add more <input
type=file> controls to the page.

Greetings
Martin
 
Back
Top