Forum Academy Marketplace Showcase Pricing Features

Get file size from a Group's image

I need to get the file size for a group’s image to use in a plugin. I have an uploader nested in a group from which I could easily get the file size:


I have the uploader in a group for formatting and file management purposes, so I really don’t want to have the uploader by itself. Unfortunately, the plugin I’m using will not process the image from the setup above since it’s in a group. Is there any way I can get the file size from the group’s image?


Hey @sydney22 ,

here is what you can do:

  1. in group give proper type of content and data source
  2. add file uploader in that and give content to that
  3. add input(or any element you want to show file size in) and give dynamic placeholder “file uploader’s file size”

as far as i have understood your problem, this could be the solution.
hope this will help you.

1 Like

Thank you, @Sart. I guess what I’m trying to do is have the plugin field in the screenshot recognize the picture uploader’s file size despite being nested in a group. I tried to bring the picture uploader to the front but that did not work.

i don’t think you will need any plugin here. just use the file uploader in the input forms
here i have used input field to show the file size.

I should rephrase- the plugin is being used to post the image to Twitter. What I need is to have the plugin validate the file size that I pass it so that the image will be posted. Since the image is nested in a group it’s not being recognized.

I tried to set a custom state on the group to the picture uploader’s file size but that did not work either.