Results 1 to 4 of 4

Thread: Upload a file

  1. #1
    Join Date
    Jul 2005
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post Upload a file

    Hello!

    I need to upload a file in order to store it in a MySQL db. It seems to be easy if I have a graphic interface. My problem is that I don't want the user select the file and upload it, since I already know which file has to be uploaded ...
    I would like to find the way to upload the file without using a submit, with just load the page it should be enough.

    Thanks

    Adriana Liendo

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Impossible.
    Imagine the chaos if every rogue webmaster on the 'Net could pluck any file from your hard drive and store it for his/her reading/decrypting pleasure.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Jul 2005
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    How else could I do? .. See,... three or four times a day something happens, and every time this happens the "user" has to do some stuff and introduce information of what happens in a MySQL db, it includes information as date or hour for instance, and one gif file. I want to make the process as easy as possible for the user, ask him/her if he/she wants to do it, and do it for him/her. The first part of the process is ok and I can upload all the information in the db easily, but I don't know how to do the same with the picture. Do you have other option?

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    You can do this with a Java applet, if you sign it. Remember to keep a normal HTML form as well, though, in case the user doesn't have Java.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

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
  •