• Resolved Creactive Studios

    (@creactive-studios)


    I was having trouble uploading images to my WordPress website, and this morning I checked a few other sites and it is the same thing happening there. A bit of a disaster as I need good quality images on the site.

    Anything above 300KB is giving me the error that the upload timing of 30 seconds has timed out … smaller files sizes of around 150KB are fine.

    This has only happened since the last updates to WordPress have kicked in, images were going up fine 4 months ago.

    My host server says it will not allow me to change code re the upload time limit on the .php file as I am on a shared plan.

    Is there any code that I can add, I did see something about imagick and that code can make this process less detailed which is taking up time.

    Is there a workaround to get images on the server and add them to the site as urls …. or is there a way to physically add them from the desktop to the WordPress Image Library folder in the File Manager area of cPanel.

    Just thought you might have some ideas on this.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi
    Depending on the web hosting company you choose and the package you select,
    each of you will see maximum file upload limit on your Media Uploader page in WordPress

    three methods:

    1) Theme Functions File
    @ini_set( ‘upload_max_size’ , ’64M’ );
    @ini_set( ‘post_max_size’, ’64M’);
    @ini_set( ‘max_execution_time’, ‘300’ );

    2) Create or Edit an existing PHP.INI file

    upload_max_filesize = 64M
    post_max_size = 64M
    max_execution_time = 300

    3) htaccess Method
    php_value upload_max_filesize 64M
    php_value post_max_size 64M
    php_value max_execution_time 300
    php_value max_input_time 300

    By default, WordPress stores all your images and media uploads in /wp-content/uploads/ folder on your server.
    All uploads are organized in a month and year based folders.

    For example, all your media files uploaded in in March 2016 will be stored in:

    /wp-content/uploads/2016/03/

    You can view these folders by connecting to your WordPress site using an FTP client.

    WordPress also adds information about your image uploads in the database.
    Information about your uploads is stored in database as a attachment post type under the posts table.
    Thanks
    Ahir
    (copied)

    • This reply was modified 7 years, 9 months ago by Ahir Hemant.
    • This reply was modified 7 years, 9 months ago by Ahir Hemant.
    Thread Starter Creactive Studios

    (@creactive-studios)

    Thanks Ahir,

    @hemant-ahir My hosting company sorted me out in the end – took a bit of coaxing but I got there.

    regards
    Mike

    Thread Starter Creactive Studios

    (@creactive-studios)

    This is solved now

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Cant upload images to my WordPress site’ is closed to new replies.