Replit Deployment, what is the local server/folder to point a form upload to?

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" />

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 :slight_smile:

Just want to add that you can make the action /upload without anything before.

1 Like

Ah yes, relative directory… thank you!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.