36
Views
3
Comments
How to upload a file using URL and show the file in the UI in ODC?

Similarly, like Multiple file uploads forge but with a URL upload and display it on the UI like the file name, to see the uploaded file in the data base in ODC. With the client action below, I am trying out, but I cannot get to download the file or see the file what was uploaded like in Multiple file upload widget. I used download option, but I can only see some funny characters, please do help me with this. 

2024-12-10 04-40-04
Gitansh Anand

Hi @Selvam Madhumitha Nandhini, I can see in your screenshot that the extension of the file is xls, have you provided the same extension in the file name in the download node, because the file is opened in notepad, but it should be opened in excel.

You need to provide correct extension while downloading the file to open it correctly.

Thanks
Gitansh Anand

UserImage.jpg
Selvam Madhumitha Nandhini

Hi Gitansh, 

I have managed to download the file, thank you so much, One more thing I would like your advice on, Since I want to get the file from the URL, I was unable to get the file name, I am not sure how I can I get the file name, Like for example when you paste the link in chrome, it gets saved as a file with it's file name, is there any way to get the file name? using this download action?  "https://www.cmu.edu/blackboard/files/evaluate/tests-example.xls" , I couldn't get any output so I was unable to showcase the file that has been uploaded side the data base in a UI like how we do it using Multiple file upload forge component. 

2024-12-10 04-40-04
Gitansh Anand


Hi @Selvam Madhumitha Nandhini, I have not done this before, but please check the output of your Request_SubmitGetRequest action, it should also return the name of the file along with the binary content. If it does not return the file name then I can see in the file name in the URL as well, first verify that all your URLs are following the same syntax, if yes then you can use string manipulation to extract the file name from the URL.

Thanks
Gitansh Anand

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.