Results 1 to 5 of 5

Thread: How to Allow Users to Upload Images to My Website?

  1. #1
    Join Date
    Jan 2009
    Location
    NH
    Posts
    339
    Thanks
    47
    Thanked 8 Times in 8 Posts

    Question How to Allow Users to Upload Images to My Website?

    I take care of a few of my churches websites. On 1 of them I would like to make a page that allows members to upload images. I will then take the images and place them on the site in galleries for people to see.

    How can I accomplish this? I want it to be a page you have to input your name and email address so that I can verify who the images are from.

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,162
    Thanks
    263
    Thanked 690 Times in 678 Posts

    Default

    You're suggesting doing a lot of this manually, so why not just ask them to email you the photos? That would obviously be easier to set up.

    If not, you'll need to create a file upload form. You probably can't use a free form mailer because those don't usually allow any files (but you could look for one). This means you'll need to set up a form and then use PHP (or a similar language) to process it.

    If you want to do this with PHP, you can start here:
    http://php.net/manual/en/features.file-upload.php
    That's fairly technical, but it's worth being aware of the information and there are a few examples.
    Then just search Google for the many tutorials out there about uploading files.


    Security is a major concern, at least if they can ever access the files directly. (If you're doing this manually, I'd suggest just hiding the images somewhere [usually outside of the http root folder is a good idea], then moving them once you've checked them.) If you do this automatically, which would be possible, so they'd immediately be visible on the website, you'd need to check that it's not a dangerous file type and potentially check the kind of image. There's also an issue of format and filesize. You'll probably want some way to reject especially large files (and dangerous file types, like .php).

    As for the name and email, you can also do that with a form that will then (via PHP) send you an email confirming it. (Or you could have it save it in a database, or create a text file, etc.)



    Easy answer: ask them to email the images.
    More complex answer: learn how to use PHP (or a language like it) for doing this sort of thing-- it's a big project and will be challenging probably, but it's possible.
    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

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

    mlegg (03-07-2013)

  4. #3
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,321
    Thanks
    30
    Thanked 137 Times in 132 Posts
    Blog Entries
    29

    Default

    Or:
    Put an iframe on one of your pages loading a wiki provided by wikidot.com.

  5. The Following User Says Thank You to molendijk For This Useful Post:

    mlegg (03-07-2013)

  6. #4
    Join Date
    Jan 2009
    Location
    NH
    Posts
    339
    Thanks
    47
    Thanked 8 Times in 8 Posts

    Default

    that you for the input

  7. #5
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,321
    Thanks
    30
    Thanked 137 Times in 132 Posts
    Blog Entries
    29

Similar Threads

  1. Noobe - Upload and Display Images by Users
    By LazyFisher in forum Looking for such a script or service
    Replies: 5
    Last Post: 04-27-2011, 04:04 AM
  2. Replies: 5
    Last Post: 04-08-2010, 03:15 AM
  3. Replies: 2
    Last Post: 12-31-2009, 05:03 AM
  4. Upload Images From Website To E-mail
    By Gary1234 in forum HTML
    Replies: 6
    Last Post: 08-28-2006, 03:11 AM
  5. How to have others upload images to website
    By twirlzz in forum Graphics
    Replies: 3
    Last Post: 05-21-2005, 08:16 PM

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
  •