I am doing some GOlang image processing and using an html file with a form for multipart file upload of a PNG. I’m not sure how to find the server info to replace my localhost in code. Thanks.
<form action="http://localhost:8080/upload" method="post" enctype="multipart/form-data">
<input type="file" name="myFile" />
<input type="submit" value="Upload" />
</form>
Ok, actually, I figured it out right after posting… for future devs looking for this answer, I used the domain Replit created when deploying.
Now I have to figure out why I get a 404 not found
Just want to add that you can make the action /upload
without anything before.
1 Like
Ah yes, relative directory… thank you!
system
Closed
June 21, 2023, 6:04am
5
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.