Javascript for Upload file from local machine | Community
Skip to main content
thomaso88829577
December 7, 2023
Solved

Javascript for Upload file from local machine

  • December 7, 2023
  • 1 reply
  • 1369 views

Is it possible to use javascript yo upload file from localcomputer. It's a CSV file.
So I want to only start the workflow and have a javascript that upload the file auto. So when I change the file, I can only restard the workflow and the file is upload.


 

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Marcel_Szimonisz

Hello @thomaso88829577,

this is not achievable, it's two different things. Adobe Client connects to a server, all resources you find on the client are shared with other people right. The workflow knows if the file changed only when you access the wrokflow and click on the buttons. for other operator adobe would throw errors. Ask around for SFTP and load files there. Once you manually load file to sftp you can change the settings to following

1. File collectoror
2. Data loading (file)
3. Specified in transition


Marcel

1 reply

Parvesh_Parmar
Community Advisor
Community Advisor
December 7, 2023

Hello @thomaso88829577 ,

I would recommend that you follow these steps:

  1. Create a shared folder on your AC server.
  2. Drop the file there.
  3. Select the option calculated from activity . 

     

  4. Put the path of the file.

Then you can edit the file and run it. You will not need to upload the file again and again.

 

Uploading the file from a script on the server is possible, but I have not found it to be beneficial in the long run. I believe that it is more likely that you will only change the file for testing purposes, but in production, you will only have one file.

 

If you have any questions, please let me know.

 

Sincerely,

Parvesh

Parvesh Parmar – Adobe Community Advisor https://www.linkedin.com/in/parvesh-parmar/
thomaso88829577
December 7, 2023

Thanks!
The problem is that I have not access to the server. 
And I gonna update this files oce a week, and then it would be nice to have a javascript for this

Marcel_Szimonisz
Community Advisor
Marcel_SzimoniszCommunity AdvisorAccepted solution
Community Advisor
December 8, 2023

Hello @thomaso88829577,

this is not achievable, it's two different things. Adobe Client connects to a server, all resources you find on the client are shared with other people right. The workflow knows if the file changed only when you access the wrokflow and click on the buttons. for other operator adobe would throw errors. Ask around for SFTP and load files there. Once you manually load file to sftp you can change the settings to following

1. File collectoror
2. Data loading (file)
3. Specified in transition


Marcel