blazor
I have a silly question, I'm uploading a file, but I need to collect the local route, for example "C:/test/users/home$"name archive"
16 Replies
what do you mean "local route"
sorry, route of the folder on my computer where the file is
you can't
the browser doesn't share that information with the server
I have a route from an api, which I need to send the file that is on my computer, so it expects to receive the folder route along with the file name and format (image/png)
no clue, sorry. there's some js magic, etc.
@viceroypenguin | 🦋🐧
linkImg = C:/home/downloads/image.png
exemple
Sorry, but I don't know. there's some javascript you can do in order to share the image file name, but i dont' know what that is.
.. why do you need the path? iirc the client does send a suggested filename
but the absolute path, why on earth would you need this?
that path doesnt exist on the server, so its useless to you
@Pobiega to upload the file, Meta (Whatsapp) requests that it be like this
https://developers.facebook.com/docs/whatsapp/cloud-api/reference/media/#upload-media
Thats because that API doesnt take the actual file itself, as far as I can see
meaning there is no file being uploaded - it just passes the path and something else takes care of actually reading and uploading the file content
ahhhhhhh, thanks bro
Im really not sure what that thing is thou, but look at those example queries
there is no file content here
he accepted link
thanksssssssssssssssssssss
okidoki