Home Forums Plugin Support WP User Frontend Pro Max image file size

This topic is: resolved

Tagged: , ,

This topic contains 17 replies, has 4 voices, and was last updated by  RMAndres 5 years, 8 months ago.

Viewing 15 posts - 1 through 15 (of 18 total)
  • Author
    Posts
  • #3989

    MDelcour
    Participant
    Post count: 46

    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”.

    #4068

    Tareq Hasan
    Keymaster
    Post count: 2831

    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.

    #4069

    MDelcour
    Participant
    Post count: 46

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

    #4070

    Tareq Hasan
    Keymaster
    Post count: 2831

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

    #5541

    RMAndres
    Participant
    Post count: 14

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

    Thanks in advance.

    #5542

    Mahi
    Member
    Post count: 1555

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

    #5546

    RMAndres
    Participant
    Post count: 14

    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.

    #5547

    Tareq Hasan
    Keymaster
    Post count: 2831

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

    #5549

    RMAndres
    Participant
    Post count: 14

    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.

    #5554

    Mahi
    Member
    Post count: 1555

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

    #5555

    RMAndres
    Participant
    Post count: 14

    Reverted to original file and the problem remains.

    #5560

    Tareq Hasan
    Keymaster
    Post count: 2831

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

    #5562

    RMAndres
    Participant
    Post count: 14

    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.

    #5564

    Tareq Hasan
    Keymaster
    Post count: 2831

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

    #5566

    RMAndres
    Participant
    Post count: 14

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

Viewing 15 posts - 1 through 15 (of 18 total)

The topic ‘Max image file size’ is closed to new replies.