Max image file size

This topic contains 17 reply and 4 voices, and was last updated by RMAndres 10 years, 8 months ago
Viewing 15 Posts - 1 through 15 (of 17 total)
Author Posts
May 22, 2013 at 10:13 am 3989
RMAndres Heey, does anybody know how and where I can set the max file size of images for the "Image insertion in post content" in the "post body" part. I know it is possible for the "image upload".
May 23, 2013 at 11:15 am 4068
Tareq Hasan Tareq Hasan

The file size defined in the insert image button is fixed and it’s declared at /js/frontend-form.js line 328. It’s like this: max_file_size: '2mb',. Change it to 1mb or 500kb or anything.

May 23, 2013 at 11:20 am 4069
MDelcour MDelcour

If I change this and update do I lose the changes??

May 23, 2013 at 11:25 am 4070
Tareq Hasan Tareq Hasan

Yes. Perhaps I’ll add a settings for max image size in any future versions.

July 3, 2013 at 3:01 pm 5541
RMAndres RMAndres

Is there any way of limiting the number of images uploaded to content?

Thanks in advance.

July 3, 2013 at 3:03 pm 5542
Mahi Mahi

When you add image field on form at very end you can set the number of images upload permission.

July 3, 2013 at 3:56 pm 5546
RMAndres RMAndres

Yes, I’m aware of that but I’m specifically talking of the image upload directly to the post content.

Any way to check if the post content has a number of images uploaded to it and if it does give a warning to the user?

Thanks in advance.

July 3, 2013 at 3:58 pm 5547
Tareq Hasan Tareq Hasan

Nope, there isn’t any way to limit the numbers.

July 3, 2013 at 4:17 pm 5549
RMAndres RMAndres

Okay, now I noticed another problem, I changed the max image file size, following your instructions here, but the image stills tries to upload and nothing happens afterward, the progress bar just stays there empty without any result, message or error.

Thanks in advance.

July 3, 2013 at 5:34 pm 5554
Mahi Mahi

check that you didn’t do any typo mistakes when you edited that file ?

July 3, 2013 at 5:37 pm 5555
RMAndres RMAndres

Reverted to original file and the problem remains.

July 3, 2013 at 6:15 pm 5560
Tareq Hasan Tareq Hasan

Can you give us access to your site so we could see whats going on exactly?

July 3, 2013 at 7:20 pm 5562
RMAndres RMAndres

Unfortunately I can’t since I’m developing locally, can you test it with the most recent version of jQuery?

I suspect that is the problem.

I’m grateful for the help.

July 3, 2013 at 7:49 pm 5564
Tareq Hasan Tareq Hasan

You should be working on the jQuery that comes with WordPress by default. Don’t dequeue WordPress’s jQuery

July 3, 2013 at 11:25 pm 5566
RMAndres RMAndres

It doesn’t work with default jQuery too, can you send me a print of what is supposed to happen?

July 8, 2013 at 11:54 pm 5702
RMAndres RMAndres

I found what was preventing the alert from showing (2 missing letters), but the percent bar stills stays in place empty, I don’t like having to change core files that may break in an update so please address this issues if you can.

Thanks anyway for the help.

Viewing 15 Posts - 1 through 15 (of 17 total)