A web viewer can list folder contents (at least I could do this several versions ago)
but you might instead consider using the Get ( DocumentsPathListing) function.
This produces a return separated list of every file and folder inside your documents folder. You may be able to parse that data to get the needed path to your file in order to insert it into your container field.
Thanks for your quick response. the Get ( DocumentsPathListing) shows the listing of folders and files as you described. The problem is that they are references to images without contents, the only option is to open the file to view its contents. That wont help me.
I do like the idea of a web viewer as you said you could do several versions ago ( I have 10 and 11 ). I could make it interactive and just drag and drop the file I need into it. Would you mind sharing the formula to use in the web viewer? if it works that will be great.
The problem is that they are references to images without contents, the only option is to open the file to view its contents.
Not necessarily, if this is an image file, you can go ahead in insert the file(s) into container fields for viewing purposes.
I never had to drag and drop from the WV and I'm not sure that will work. In my experiments in an older version, I could list folder contents by using the Same URL you'd use with a web browser to open the file, but use the file path to the enclosing folder. As I recall, it was rather buggy in the version where I tested this. (Was looking for a way to list folder contents without using a plug in.)
And you might be able to use Insert From URL to insert the file rather than a drag and drop.
But Open URL could open the folder in an OS window and you could drag and drop from that into a container field. If you are doing a drag and drop of image files, the thumbnails shown in this window might be sufficient.