Restructured Files to prep for archive

Signed-off-by: devoalda <linuxes_mojoworld@aleeas.com>
This commit is contained in:
devoalda 2023-06-05 15:27:35 +08:00
parent dd2c3b1904
commit 850b26c4ca
22 changed files with 4 additions and 3 deletions

View File

@ -17,6 +17,9 @@ class file_steg:
"xlsx",
"csv",
"pptx",
"jpg",
"jpeg",
"gif",
"pdf"
]
if file is None:

View File

@ -4,7 +4,6 @@ import cv2
import os
import sys
import wave
import warnings
MAX_SESSION_SIZE = 4096 * 3
WORKING_PATH = os.path.join(os.path.dirname(os.path.abspath(sys.argv[0])), "upload") + os.sep
@ -13,7 +12,7 @@ WORKING_PATH = os.path.join(os.path.dirname(os.path.abspath(sys.argv[0])), "uplo
supported_files = {
"txt_files": ["txt", "py", "sql", "html", "css", "js", "php", "c", "cpp", "java", "json", "xml", "yml", "md"],
"gen_files": ["mp3", "mp4"],
"doc_files": ["docx", "xlsx", "pptx", "csv", "pdf"],
"doc_files": ["docx", "xlsx", "pptx", "csv", "pdf", "jpg", "jpeg", "gif"],
"wav_files": ["wav"],
"image_files": ["bmp", "png"]
}
@ -188,5 +187,4 @@ def upload(filename):
if __name__ == "__main__":
app.debug = True
app.run(host="localhost", port=8000)

View File

Before

Width:  |  Height:  |  Size: 117 KiB

After

Width:  |  Height:  |  Size: 117 KiB

View File

Before

Width:  |  Height:  |  Size: 501 KiB

After

Width:  |  Height:  |  Size: 501 KiB

BIN
upload/pokemon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB