/    Sign up×
Community /Pin to ProfileBookmark

Tried Everything! Image Upload Max Size Error

Hi there,

I have read the thread and the sticky on uploading files with php and have used the script given out on this forum for uploading 1 file at a time on my site. Even if the file I try to upload is 34k, I continue to get the html form max file size exceeded message. I have given the folder that the picture is supposed to upload into a 777 permissions and have edited the php.ini file to accept up to 50M. It seemed like these strategies worked for everyone who tried them but I still can not upload a small picture.

Is there anything else that I can do to get this script to work?

Thanks for any help you can give!

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@19Rookie83Jun 04.2007 — If you copied the script directly from the sticky at the top of the forum you will notice that the $max_upload_size variable is set at 30000 which is the size in bytes

Meaning that the file you are trying to upload if it is 34kb will be, 34000, if not larger cause the sizes never seem to line up ? not sure why but they just don't.

If this doesn't work post up your code and lets take a look.
Copy linkTweet thisAlerts:
@NewAtPHPauthorJun 04.2007 — Hi there!

Thanks so much! That is kind of an embarrassing mistake haha - didn't do the math - but it worked after that.

  • 1. The next issue is how to get it to display graphically.

    there is a lot about that on the site about putting into a database, but is there anyway that it will show as a graphic just in the uploader folder?


  • 2. It also assigns it a number and I was wondering how to control what number it is assigned.


  • Any help is appreciated but thank you so much. at least it uploads now!!
    ×

    Success!

    Help @NewAtPHP spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 4.29,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @Yussuf4331,
    tipped: article
    amount: 1000 SATS,

    tipper: @darkwebsites540,
    tipped: article
    amount: 10 SATS,

    tipper: @Samric24,
    tipped: article
    amount: 1000 SATS,
    )...