Toggle navigation
☰
HTML
CSS
Scripting
Database
<!DOCTYPE html> <html> <head> <title>File Upload Form Example</title> <style> body { font-family: sans-serif; margin: 20px; background-color: #f9f9f9; } .upload-form { background-color: white; padding: 25px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); max-width: 400px; border: 1px solid #e0e0e0; } .form-group { margin-bottom: 20px; } .upload-form label { display: block; margin-bottom: 8px; font-weight: bold; color: #333; } .upload-form input[type="file"] { width: 100%; padding: 10px; border: 1px dashed #ccc; border-radius: 4px; background-color: #fafafa; cursor: pointer; } .upload-form .help-text { font-size: 13px; color: #777; margin-top: 5px; display: block; } .upload-btn { background-color: #007bff; color: white; padding: 10px 15px; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; } .upload-btn:hover { background-color: #0056b3; } </style> </head> <body> <div class="upload-form"> <h2>Upload Document</h2> <form action="/upload-processor" method="post" enctype="multipart/form-data"> <div class="form-group"> <label for="documentFile">Select a PDF or Word document:</label> <input type="file" id="documentFile" name="documentFile" accept=".pdf, .doc, .docx" required> <span class="help-text">Max file size: 5MB</span> </div> <div class="form-group"> <label for="photos">Upload Images (select multiple):</label> <input type="file" id="photos" name="photos" accept="image/*" multiple> <span class="help-text">You can select more than one image file.</span> </div> <button type="submit" class="upload-btn">Upload Files</button> </form> </div> </body> </html>