Skip to main content
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?

  • July 24, 2017
  • 6 replies
  • 64 views

Forum|alt.badge.img

Best answer by stalknecht

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

Upload file drag and drop

Upload file in session

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

6 replies

Forum|alt.badge.img
  • Author
  • 55 replies
  • July 24, 2017
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

 

 

 


stalknecht
Contributor
Forum|alt.badge.img+21
  • Contributor
  • 305 replies
  • Best Answer
  • July 24, 2017

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

Upload file drag and drop

Upload file in session


jdh
Contributor
Forum|alt.badge.img+37
  • Contributor
  • 2002 replies
  • July 24, 2017

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.


Forum|alt.badge.img+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

Forum|alt.badge.img
  • Author
  • 55 replies
  • July 28, 2017

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.

 

 


rylanatsafe
Safer
Forum|alt.badge.img+14
  • Safer
  • 671 replies
  • July 31, 2017
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