HI i'm deddy
i try to view phsycal pdf file using mobile outystems. when i want to viewing , i got error "cannot display pdf, file cannot be opened". i try to debugging. url https://xxx-xxx.outsystemscloud.com/MobileInvoice/UploadScreen/TempFolder/aaa.pdf
when i tried to copas that url in my browser :
how i can solve it ?
regards
Deddy
Hi deddy effendi,
The FileSystem forge component allows you to manipulate the server's file system, that is true... but that location will not be directly accessible by public URL.
When you save a file, you need to find the right path on the filesystem, unrelated to any URL of the application itself. Then, if you want to access it, you will need to create a screen to access that path and download the file. If there are multiple files, you will need to pass some input to the new screen so that it can determine the right file to download. Finally, you will likely need to manually build the URL to the new screen (with any input parameter needed) as the URL for the file to download/open from your device.
Hope this helps!
Hello,
How are you uploading the file? Did you double-check the path "UploadScreen/TempFolder"? Is this correct?
BR,
Luis
hi luis
i'm uploading file using file systems, when i want to display it. like this :
i got url variabel from :
so i got url > url https://xxx-xxx.outsystemscloud.com/MobileInvoice/UploadScreen/TempFolder/aaa.pdf
how do i fix it ?
deddy effendi wrote:
Hi,
There are 2 ways to fix this:
Hope this help