The pic upload limit

Started on the old forum in August 2018 · view the original in the archive · old links redirect here

3 replies · 76 views · started 8 years ago · 1 min read

2 participants
tupac Developer · 95 posts #1

How do i get to change the pic upload limit in class.upload.php from 1024 kb (1mb) to 2024 kb (2mb). I've changed it but when i upload a pic that's more than 1024 kb it says uploaded successfully, but the pic doesn't show!!!! It's blank

something else Fellow · 2,296 posts #2

I have answered this question already but spam block keeps blocking it..... So attempt number 3:

check you max upload size: info.php:

<php
phpinfo();
?>

(make sure you hide or delete this file after use as is handy to hackers)

change upload size in .htaccesss:

php_value post_max_size 50M
php_value upload_max_filesize 30M

or

php5_value post_max_size 50M
php5_value upload_max_filesize 30M

depending on configuration.

or php.ini

upload_max_filesize = 30M
post_max_size = 50M

Note: some hosts will not allow you to change these settings.

tupac Developer · 95 posts #3

Thanks bro, but is that 50 m and 30 m = 50 and 30 mb or similar to the 2mb i mentioned above?

something else Fellow · 2,296 posts #4

2 M will be 2mb

you may need to increase memory limit in same way at same time: .htaccess

php_value memory_limit 30M

php.ini

memory_limit = 30M

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close