Is is possible to increase the maximum upload size on wordpress?

Basicaly I'd like to find a way to increase the maximum upload size, I'm only talking about wordpress because it happens to be the platform Im working on but what I need is to find a way to go around php setting on the server as wordpress seems to use those setting as default. Note that I'm only looking at uploading pictures, no other sort of files.

I have found several pages on google explaining either how to edit wordpress setting (in my case this is not something that would work), or changing the php setting on the server side, and I simply cannot do that.

I have thought of a few ways to reach this goal but don't know where to start as I'm not that good in picture processing. I was thinking about evaluating the picture size and dividing it into several files (is it something do-able in js ?), then upload them onto the server and assemble them from there in php (that I can do).

Can you tell me what you think about it ? I'm not asking anybody to do the work, i'm just looking for a hint or just for somebody to tell me where to start from in js or whatever other language I need to use on the front end.

Thanks a lot.


Yes, it is certainly possible to split a file via JS into chunks and to senk these ones individually.

  1. Declare a file input field:

    <input type="file" id="input">
  2. Access the first file (there could be more if using the multiple attribute):

    var selected_file = document.getElementById('input').files[0];
  3. You now have a File object which also inherits the Blob interface. You can therefore call Blob.slice in order to split the data into chunks.

  4. Upload those chunks via AJAX

  5. Combine the chunks again on the server side

Further readings:

The restriction is at the server level.

You MUST adjust your server configuration in order to trickle down to WordPress.

If you set WordPress configuration to a max of 40MB, and Apache (or other web server software) still has a 2MB limit, you won't ever be able to post more than 2MB.

One option would be to use a Flash-based upload tool which can perform some pre-processing to downsize the image before uploading.

If you really want to get fancy, you could develop your own Flash-based upload tool to chunk uploads into 2MB parts (or whatever your server's maximum post size is) and some server-side script to re-assemble the pieces, just like the internet does with packets.

Need Your Help

R: Creating a dynamic list of xts objects

r list dataframe xts quantmod

Going crazy trying to create some type of list/data frame containing xts objects.

Image names are not changing in textview as images change in ImageView

android image textview

I have 10 images in drawable. In xml a textview, an imageview and 2 buttons to change images. Images change as next and back button clicked. But it shows only one name in textview and names not cha...