Results 1 to 4 of 4

Thread: Refill "File" form field with stored image data

  1. #1
    Join Date
    Aug 2009
    Posts
    15
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default Refill "File" form field with stored image data

    Hello,

    Is there any way to populate an input type=file form field with stored information from a mysql database? And if so, is this a security risk?

    Thanks in advance!!!!

  2. #2
    Join Date
    Nov 2008
    Posts
    58
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Default

    No; You can not fill the file upload box value. There is security risk. That is the reason why it is not allowed by the browsers.

  3. The Following User Says Thank You to prasanthmj For This Useful Post:

    pelaej (10-22-2010)

  4. #3
    Join Date
    Aug 2009
    Posts
    15
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    Thanks prasanthmj! I had a feeling that was the answer, but just wanted to make sure...

  5. #4
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    To expand a little: theoretically you could. I don't know if it's allowed in HTML or not. But in reality, you cannot because all browsers ignore this. It is the same with Javascript.
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •