mirror of
https://github.com/rikkaneko/paste.git
synced 2025-08-06 06:00:17 +01:00
Add Content-Type header to response
Support auto-detection of MIME types based on filename extension Signed-off-by: Joe Ma <rikkaneko23@gmail.com>
This commit is contained in:
parent
c9e3376d21
commit
1ec2a9f7f0
4 changed files with 47 additions and 31 deletions
|
@ -28,7 +28,7 @@
|
|||
<h4>Upload file</h4>
|
||||
<form action="https://paste.nekoul.com" method="POST" enctype=multipart/form-data>
|
||||
<div>
|
||||
<input id="upload_file" type="file" name="upload-content">
|
||||
<input id="upload_file" type="file" name="u">
|
||||
<div><input type="submit" value="Send"> (<span id="file_size">0 byte</span>)</div>
|
||||
</div>
|
||||
</form>
|
||||
|
@ -50,7 +50,7 @@
|
|||
<form action="https://paste.nekoul.com" method="POST" enctype=multipart/form-data>
|
||||
<div>
|
||||
<textarea id="text_input" style="width: 30%; max-width: 100%; " rows ="5" cols="50"
|
||||
name="upload-content" placeholder="Paste your text here..."></textarea>
|
||||
name="u" placeholder="Paste your text here..."></textarea>
|
||||
<div><input type="submit" value="Send"></div>
|
||||
</div>
|
||||
</form>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue