Aware putting images into a DOCS directory???

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
Jaymer
Posts: 2451
Joined: Tue Jan 13, 2015 10:58 am
Location: Tampa, FL
Contact:

Aware putting images into a DOCS directory???

Post by Jaymer »

I have images stored in the FS under Tomcat in 8.4
My images are in an Attachments BO Group.
A Contact has a pm_Attachment reference field.
If you show that grid on a tab, you'd see this:
Screen Shot 2020-02-20 at 9.14.07 PM.png
Screen Shot 2020-02-20 at 9.14.07 PM.png (61.55 KiB) Viewed 2845 times
I added a View button when it sees the file extension is an Image, or else you'd have to view/edit the record to the Form (where you usually attach it using Aware's [Select File] widget) AND THEN click to see the image.
So to save a step, I'd like to View it directly from this grid.
The [View] just edits a POPUP form with a HTML cell and this:

Code: Select all

<img src=<<Attachment.TheDocument>> height="400" width="600"/>
What i'm confused about is why Aware is copying the image into its \AwareIM\DOCS directory... and then it cleans itself up and gets automatically deleted at some point.

Support told me that "HTML cells are resolved on the client, not on the server. " Maybe this has something to do with it. I have never seen these before.
Click Here to see a collection of my tips & hacks on this forum. Or search for "JaymerTip" in the search bar at the top.

Jaymer
Aware Programming & Consulting - Tampa FL
Jaymer
Posts: 2451
Joined: Tue Jan 13, 2015 10:58 am
Location: Tampa, FL
Contact:

Re: Aware putting images into a DOCS directory???

Post by Jaymer »

oh, forgot...
one reason this became an issue is that during testing, one of my images displayed with a broken link.
Turns out that when Aware does it this way, its not properly URL encoding the path.
My user-uploaded file had a space in the filename - which has been valid in lots of places up until this.
I think its just an overlooked issue from Support - probably never been reported.
Click Here to see a collection of my tips & hacks on this forum. Or search for "JaymerTip" in the search bar at the top.

Jaymer
Aware Programming & Consulting - Tampa FL
Post Reply