Welcome, Guest
Username: Password: Remember me

TOPIC: Image size?

Image size? 3 years 2 months ago #713

hi, ads from uploaded images size set permissions?

often large (eg 4 mb) files is not uploading. :(
The administrator has disabled public write access.

Image size? 3 years 2 months ago #714

  • Super User
  • Super User's Avatar
  • Offline
  • Administrator
  • Posts: 2765
  • Thank you received: 292
  • Karma: 40
Hi,

I assume that your Hosting provider has restricted the upload size limit in your server. Check the below options to increase it.

Option 1

You can overwrite the php settings by using php.ini in your domain root directory. Open notepad and paste the below code and save the file as php.ini file.

safe_mode = off;
file_uploads = on;
session.cache_expire = 4000000000;
upload_max_filesize = 1000M;
post_max_size = 1010M;
max_execution_time = 40000000;
max_input_time = 40000000;
memory_limit = 1010M;

If it does not work, you may try by placing the php.ini file in your directory which executes upload process.

Option 2

If your server administrator restricted the usage of php.ini then you may overwrite php settings using .htaccess file. Open notepad and paste the below code and save the file as ".htaccess" file and place it in the domain root directory.

php_flag safe_mode off
php_value max_execution_time 1000
php_value session.gc_maxlifetime 14000
php_value output_buffering on
php_value upload_max_filesize 104857600
php_value post_max_size 104857600
php_flag display_errors off

If both the above options does not work, then you may need to ask your server administrator for increasing file upload size.

Thanks
The administrator has disabled public write access.
The following user(s) said Thank You: Enes Karadoğan
Time to create page: 0.241 seconds