It looks like there might be a limitation of only being able to use a single file upload parameter for a workspace when running the workspace through the FME Server Javascript API. Does anyone have any experience with this, or how to overcome the limitation? I'm assuming that we will need to resort to the REST API?
Here's what the documentation for the Javascript API states for the FMEServer.runWorkspaceWithData( path, parameters, callback ) method:
parametersObjectThe Object representing the parameters:
{ filename : workspace_file_parameter_name, files : files_object, params : name_value_pair_string, service : service_name }
Note that there is only a single "filename" parameter. You can upload multiple files to that parameter but it's just one parameter.