n1crack / vuefinder

Empower your Vue.js applications with this versatile and customizable file manager component, simplifying file organization and navigation.
https://vuefinder.ozdemir.be
MIT License
259 stars 75 forks source link

Support transform request properly on upload #39

Closed DreamlandOwO closed 9 months ago

DreamlandOwO commented 9 months ago

I just realize we can set request body by call uppy.setMeta(), so I grab the request body come out from requester.transformRequestParams() and stick it in, now is properly transformed before upload.

~But unfortunately I don't think we can transform request method or query params, that just doesn't seems possible (or may be too expensive?). If I try set method or endpoint in XHR plugin config, nothing will happen after called uppy.upload() instead of actually starting sending files to the server. I haven't try swap XHR plugin before upload, that's kinda dumb tho.~

Nvm I literally found my way to do that part. Fixing right now.

n1crack commented 9 months ago

nice.

DreamlandOwO commented 9 months ago

Okay, I'm checking it

DreamlandOwO commented 9 months ago

Alright, now will be properly transformed on upload 👌

And I don't see anything on upload, maybe is from your local dev env? My cookies list are empty. image

n1crack commented 9 months ago

Check the demo, it its not there too maybe its from one of my chrome extension, I don't know. I'll check it later.

DreamlandOwO commented 9 months ago

Yea I still don't see it.. maybe

image

n1crack commented 9 months ago

found the reason. nvm :)

n1crack commented 9 months ago

merged the code, and I figured from your ss that the backend of the demo was legacy code :) updated the demo as well.