Hi,
I am uploading a file using file-upload widget.
Now i need to set the destination path for the uploaded file.
Is there any component that can be used to set the destination path or any way to do the task (integration studio) ?
Thanks,
Sai
sai teja Yeniganti wrote:
Filipe Silva wrote:
You can use this component, https://www.outsystems.com/forge/component-overview/68/filesystem, you will need to have the proper permission set on the server
Hi Filipe,
Thankyou for responding.In the FileSystems Forge component, I see that there is only one relevant action - FIle_Copy which copies a file from source path to destination path.Is this the action you are talking about ? Or is there anything that i missed.
Saiteja
Hi sai teja Yeniganti,
There are many more actions in the component that you can use. As you mentioned u need to set a destination path for your file in server, you can use action named "File_WriteBinary" Using this action u can keep your file in server by passing an URL and Binary content of your file.
Also in order to proceed with the task,
Firstly you need to create a directory in server,
then you can pass the URL of your directory.
You have many more actions like "Directory Create","Directory Exists", "File_WriteBinary" etc.
Hope these information is helpful for you, let me know if any other concern.
Deepa Tiwari wrote:
Hi Deepa,
I am using the File_WriteBinary action. But when I use the path along with the server name ("\\<server_name>\<path>"+"<File_Name>") I am getting an error " The given path's format is not supported."
I am still working on how to set the destination path.
Thanks & Regards,
What Server name and path you are Passing ??
The same servername where a new version gets stored when I click the 1-Click Publish button and the path of the particular folder present in it.
Can you please elaborate this,
"u can keep your file in server by passing an URL and Binary content of your file". How to pass the URL (Structure of it)
what if we want to save multiple files ? in a specific folder
u can store more than one file but with different name.
I have the same problem ...
Hi Saiteja,
First thing you canget access direct path of cloud platform.
Follow this steps toput file on server path and get file from same
For Getfile from server-
Path_GetApplicationDirectory.ApplicationDirectory+"\TempFolder\"+FileName
If you want to getlist of file from same directory Use "Directory_ListFiles"Actions.
Hope this will help you.
Thanks
Rahul Sahu
Rahul Sahu wrote:
Rahul Sahu YOU COULD SHARE THE OML FOR DOWNLOAD?
Raquel Gomes wrote:
Hi Raquel,
Sure, i have attached oml please look
Hi Rahul Sahu !
In the action "File_WriteBinary" is giving error "Access to path is denied" ... I have already given all permissions to the folder where the file should be saved.Do you know how to solve this error?
I think the directory was not exist which you want find just remove one "SRV-OUTSTS-DEV" because its duplicate name i am seeing in path.
Hi Rahul Sahu
I just put the folder path in the "File_WriteBinary" action, but it is giving the error of "The value can not be null."Note: I am using the Popup_Upload Widget
I have attached new oml for upload file from popup and get from.
follow the same process its work
hope this will help you.
https://rahul-sahu.outsystemscloud.com/BPT_Test/Entry1.aspx?_ts=636970889695965525
Hi Rahul Sahu ...
Can I just save a file in the folder that comes from the "Path_GetApplicationDirectory" action?I can not set another folder to save the file?Can I save a file without using the "Path_GetApplicationDirectory" action?
how can i save multiple files like in this local server: