oda-hub / frontend-tab-generator

0 stars 0 forks source link

Is it possible to upload a text file in the front-end? #22

Closed ferrigno closed 5 months ago

ferrigno commented 5 months ago

Is there an annotation to upload a text file as in the INTEGRAL frontend?

dsavchenko commented 5 months ago

Not yet. There is an issue opened https://github.com/oda-hub/dispatcher-plugin-nb2workflow/issues/50 to add this feature. It will also require changes to main dispatcher code (I suppose there is also an issue opened, can't find it now) as well as frontend/oda_api to actually use it.

Meanwhile the workaround is to upload the file somewhere and give its url as a String input parameter. This approach will then be supported as FileURL input type in a backward-compatible way.

ferrigno commented 5 months ago

Ok, thanks, I can change it to a string fro now. In oda_api, we can pass the file content as a string (parameter catalog)

dsavchenko commented 5 months ago

The catalog parameter is very integral-specific and is processed in a very special way by dispatcher. In the request to backend it gets transformed to some json, produced from the preprocessed catalogue file.

ferrigno commented 5 months ago

Ok, thanks, I can change it to a string fro now. In oda_api, we can pass the file content as a string (parameter catalog)