I have a file upload option on the app I am creating and I uploaded a jpg image, but when I viewed the file in test mode it isn’t scaling to the size of the page - it’s opening full size. I have the conatiner in the modal set to ‘scale with parent’. Am I missing something else?
Hi @starrae,
Welcome to the community! ![]()
Would you be able to share any screenshots or a screen recording showing your setup along with the preview for better understanding?
Thank you and have a great day!
I took a screenshot but I can’t even upload the image here! Every time I click upload and try to send it, I keep getting an error message (can’t embed files)??? So how am I even meant to send you a screenshot.
Hi again
It seemed to work this time - you can see the image is only showing the top right corner of the image. The size of the image is only 113KB. It should be scaling to the size of the screen, not showing like this.
Hi @starrae,
Thanks for the information!
Are you using a web view component or an image component? It looks like you’re using a web view component based on your screenshot.
Thank you and have a great day!
I have it as web view because it won’t always be an image - the file could be a mix of images or documents etc, depending on what needs to be uploaded at the time. I just used an image as a quick way of testing it files upload & view screens.
Hi @starrae,
I would suggest you to display images using an image component instead in a web view component. Web view component doesn’t have any advanced settings. Something like this with the encoded version would work when viewing images using the web view component (haven’t tested for native apps) but not the best solution which might cause issues in the app. : data:text/html,<html><body style='margin:0;padding:0;overflow:hidden;background:#fff;'><img src="image_url_from_magic_text" style='width:100%;height:100%;object-fit:contain;object-position:center;'></body></html> (Need an input component to populate this with the image URL and web view component maps that input)
Above only works for images and it would be empty for docs, so the best solution is to show images in the image component and docs in the web view component.
Thank you and have a great day!
So I’d have to create another file category just for images? That seems silly - I shouldn’t have to do that. It should know by the file type if it’s an image (jpg / png etc) or a document / pdf. Not very user friendly if it can’t even distinguish that.
Hi @starrae,
Web view component is available for display web pages inside the app which some documents can be displayed too. (URLs that does allow being used in iFrame)
You can use the image component to display the images and web view component for documents but sometimes it might not view some documents which I recommend to use an external link (with in-app browser) action or use a custom component like this.
Thank you and have a great day!
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.

