Solved

How can I upload a zip file and two other parameter(need to input) (project_name) and email (direct URL) through data upload in FME Server?


Badge

icon

Best answer by stalknecht 24 July 2017, 17:44

View original

6 replies

Badge
Hi, I want to make a customized web app and using this web page i want to upload a zip file, I have created all the process, I have published the workspace as data download in fme server, when I go RUN and get the DIRECT URL , but I want to input the parameters through web page, like the zip file, project name and the email. How can i do it?

 

 

Thanks

 

 

 

Userlevel 1
Badge +18

You can use the FME server rest api. Here are some examples with javascript:

Upload file drag and drop

Upload file in session

Badge +22

The FME server rest api does not handle emails all that well.

 

You can either put an FMEServerNotifier in your workspace and run it via the api, or use the direct url method with an opt_requesteremail parameter (https://docs.safe.com/fme/html/FME_Server_Documentation/Content/ReferenceManual/service_datadownload.htm)

 

In both cases you can follow the links @stalknecht provided in order to upload the zipfile.

Badge +2

Hi @mjoarder_pln

 

Have you seen our demos playground? http://playground.fmeserver.com/demos/

 

Some of these examples may do want you are after and there are corresponding Knowledge Centre articles about the demos. Or can use the documentation that @stalknecht has linked to or http://docs.safe.com/fme/html/FME_REST/v2/apidoc/index.html
Badge

Hi @mjoarder_pln

 

Have you seen our demos playground? http://playground.fmeserver.com/demos/

 

Some of these examples may do want you are after and there are corresponding Knowledge Centre articles about the demos. Or can use the documentation that @stalknecht has linked to or http://docs.safe.com/fme/html/FME_REST/v2/apidoc/index.html
Hi, thanks, actually I have seend lot of documentations and demos, but nothing fits with my case. I did not find any example to put published parameters by an User. For eaxmple, my data upload service has three published parameter , 1. drag n drop zip file, 2.give e name for the project and 3.email to administrator. Please send me any reference which fits my case, i will be greatful. Thanking you, and have a nice weekend.

 

 

Badge +11
Hi, thanks, actually I have seend lot of documentations and demos, but nothing fits with my case. I did not find any example to put published parameters by an User. For eaxmple, my data upload service has three published parameter , 1. drag n drop zip file, 2.give e name for the project and 3.email to administrator. Please send me any reference which fits my case, i will be greatful. Thanking you, and have a nice weekend.

 

 

Hi @mjoarder_pln, have you viewed the example linked by @stalknecht?

 

Unless I am misunderstanding, the example form at the bottom of Upload File Drag and Drop demonstrates how a custom web form can be built that both (1) includes a drag-and-drop box for the source file and (2) lists all Published Parameters of the FME Workspace (which could have included 'project name' and 'email' fields).

 

 

The source HTML is available as a download – look for the "Download Source" button next to the header.

 

 

Specifically, there is Javascript built-in to the HTML that controls the drag-and-drop box, and FMEServer.getWorkspaceParameters and generateFormItems will dynamically list the workspace parameters.

 

 

There is undoubtably other ways to achieve what you are looking for. If this does not satisfy your requirements, please let us know some more details – perhaps by referencing an existing webpage – of what you are looking for.

 

Cheers

 

Reply