- Home /
Upload files to a remote webserver using unity webgl
I am working on a project which needs a feature to upload documents. The user will be playing the game in unity web build, the user has to pick a file from his local drive, and the same file as to get uploaded into my webserver location.
Currently, I have achieved file transferring using PHP REST API using the POST method, where the file path has been passed as a parameter.
I also have an asset Native File Interaction for WebGL which I am using as a file browser and it returns only the filename.
Now in unity web build how should I get the full file path for me to send this as a parameter.
Any suggestion to build this functionality.
Your answer
![](https://koobas.hobune.stream/wayback/20220613033656im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How to use native android file-open-dialog in Unity? 1 Answer
Using Directory.GetParent to change drives? 1 Answer
Unity 5.6 webgl script error 4 Answers
WebGL + Mobile + Sound? 0 Answers
WebGL Input Manager reacting 0 Answers