Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

269
Views
How to Make a HTML Form Where Files can be Submitted.\

I'm kind of new to HTML, (not totally) and I was wondering the easiest way to create an HTML form page where users can submit files to. I have tried looking up many pages and tutorials, but they don't seem like what I need. I would want something where someone can submit a file and give it a name and it sends it to a database or something. Does anyone have a webpage where I can find a tutorial (or a video)?

Sorry if this is off-topic in anyway.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Okay, so what you wanna do is do a POST request.

<form method="POST" action="/addFile" enctype="multipart/form-data">
  <div>
    <label><h4>Name of file</h4></label>
    <input type="text" name="file_name">
  </div>
<div class="form-group">
  <input name="photo" type="file">
</div>
  <div>
    <button type="submit">Submit</button>
  </div>
</form>

After this, you want to catch this route with at POST request, and handle the input. You can do this in javascript or php etc.

Checkout Node.js or Laravel - im a big fan of laravel, and Laracasts has the tutorials you are asking for, for free at laracasts.com

Check this out (Laravel - PHP): https://laracasts.com/series/build-project-flyer-with-me/episodes/5

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!