You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in addition to the issue #20 there is also a problem when using the OData v4 endpoint from an SAPUI5 UI. The control sap.ui.unified.FileUploader uses a HTTP POST and multipart/form-data to upload the file. To switch to the required PUT operation as described here I've used the a CustomFileUploader from Arindam Seth. But also this one uses multipart/form-data. As CAP and UI5 are both created by SAP I would expect that both work together smoothly.
You can replicate the issue by using my example project that can be found at:
Now open http://localhost:4004/ and try to upload a png file. I.e. the one from the srv/tests folder of the project.
After the upload the picture should be displayed in the list below the field. But you will only see a GUID. That is caused due to to fact that simply all body data is stored without parsing. When you run the tests in srv/tests/media.http with the VS Code REST Client you will see the uploaded picture.
Best regards
Gregor
The text was updated successfully, but these errors were encountered:
hi, i think i'll grab this use case (ui5 file uploader & cap media handling in #20 ) and utilize it for the upcoming ui5con in belgium.
so please expect some work here until end of jan 2020 - and nothing over xmas and new years :)
merry whatever you in the #cap- and #ui5-community celebrate 🍩🍹🎉🎄
best,
volker
yes, I did - and finally got around cleaning it up some: https://github.com/vobu/ui5-cap
will also replace the (your) custom Upload control soon w/ a more streamlined one - and probably also move controls to web components where applicable
Hello UI5 Experts,
in addition to the issue #20 there is also a problem when using the OData v4 endpoint from an SAPUI5 UI. The control sap.ui.unified.FileUploader uses a HTTP POST and multipart/form-data to upload the file. To switch to the required PUT operation as described here I've used the a CustomFileUploader from Arindam Seth. But also this one uses multipart/form-data. As CAP and UI5 are both created by SAP I would expect that both work together smoothly.
You can replicate the issue by using my example project that can be found at:
https://github.com/gregorwolf/cap-community/tree/master/examples/media-handling
you can get it running by using:
Now open http://localhost:4004/ and try to upload a png file. I.e. the one from the srv/tests folder of the project.
After the upload the picture should be displayed in the list below the field. But you will only see a GUID. That is caused due to to fact that simply all body data is stored without parsing. When you run the tests in srv/tests/media.http with the VS Code REST Client you will see the uploaded picture.
Best regards
Gregor
The text was updated successfully, but these errors were encountered: