Skip to content

Instantly share code, notes, and snippets.

@Ichinga-Samuel
Last active August 7, 2023 09:42
Show Gist options
  • Save Ichinga-Samuel/7323310792030c63354c4cc203022214 to your computer and use it in GitHub Desktop.
Save Ichinga-Samuel/7323310792030c63354c4cc203022214 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<title>File Upload</title>
</head>
<body>
<main style="margin:20%">
<div style="margin: auto">
<h1>S3 File Upload</h1>
<form action="{{url_for('s3_upload')}}" method="post" style="margin:5px 5px" enctype="multipart/form-data">
<div style="margin: 5px 0">
<input type="file" name="file">
</div>
<button type="submit" style="display: bloc">Upload</button>
</form>
</div>
<div style="margin: auto">
<h1>Local File Upload</h1>
<form action="{{url_for('local_upload')}}" method="post" style="margin:5px 5px"
enctype="multipart/form-data">
<div style="margin: 5px 0">
<input type="file" name="files" multiple>
</div>
<button type="submit" style="display: bloc">Upload</button>
</form>
</div>
<div style="margin: auto">
<h1>Memory File Upload</h1>
<form action="{{url_for('memory_upload')}}" method="post" style="margin:5px 5px"
enctype="multipart/form-data">
<div style="margin: 5px 0">
<input type="file" name="file">
</div>
<button type="submit" style="display: bloc">Upload</button>
</form>
</div>
</main>
</body>
</html>
@Ichinga-Samuel
Copy link
Author

updated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment