Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: Uploading files

  1. #1
    New Coder
    Join Date
    Dec 2002
    Posts
    31
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Uploading files

    Hello,

    I am currently using the php function move_uploaded_file for people to upload images to my cookery web site. The issue I have is that people tend to upload the pics straight from their camera so the byte size is huge.

    Is there any script around that would reduce the byte size of an image just before uploading od should I force a byte file size and make the user reduce the file size in an editing program?

    Or would you have any better solutions which would be greatly appreciated!

    Kind Regards

    Rowan

  • #2
    UE Antagonizer Fumigator's Avatar
    Join Date
    Dec 2005
    Location
    Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
    Posts
    7,691
    Thanks
    42
    Thanked 637 Times in 625 Posts
    Of course there's no way for you to reduce the image before it's uploaded.

    I went through this pain with a website of mine and after a couple of years hearing complaints that 2 meg is too restrictive, I finally relented and increased the limit to 8 meg. I even had simple instructions how to resize an entire directory of images using a freeware program but people are too lazy. They'd rather sit on a LOADING page for an hour while their massive 5 meg files upload I guess. It was frustrating... but the complaints disappeared after I increased the upload limit. Go figure...

  • #3
    New Coder
    Join Date
    Dec 2002
    Posts
    31
    Thanks
    1
    Thanked 0 Times in 0 Posts
    thanks


  •  

    Posting Permissions

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