Corrections as per request

mia/0x0#73 (comment)
mia/0x0#73 (comment)
This commit is contained in:
Emi Simpson 2022-11-28 15:39:02 -05:00
parent 32118c2cc8
commit dd7f7eff38
No known key found for this signature in database
GPG key ID: 45E9C6E81BD86E7C

View file

@ -25,8 +25,8 @@
# sqlite:/// + /path/to/your/database.db # sqlite:/// + /path/to/your/database.db
# #
# Until https://git.0x0.st/mia/0x0/issues/70 is resolved, it's recommended that # Until https://git.0x0.st/mia/0x0/issues/70 is resolved, it's recommended that
# any sqlite databases use an absolute paths, as relative paths aren't # any sqlite databases use an absolute path, as relative paths aren't consistently
# consistently resolved. # resolved.
SQLALCHEMY_DATABASE_URI = 'sqlite:///' + '/path/to/database.sqlite' SQLALCHEMY_DATABASE_URI = 'sqlite:///' + '/path/to/database.sqlite'
@ -81,15 +81,15 @@ FHOST_STORAGE_PATH = "up"
FHOST_MAX_EXT_LENGTH = 9 FHOST_MAX_EXT_LENGTH = 9
# Force the use of certain extensions for certain MIME types # A list of filetypes to use when the uploader doesn't specify one
# #
# When a user uploads a file, we try to figure out what kind it is, both by # When a user uploads a file with no file extension, we try to find an extension that
# looking at the contents of the file and checking what the user said the file # works for that file. This configuration option is the first thing that we check. If
# was. If the type of the file is on this list, then we force the uploaded # the type of a file without an extension is in this dict, then it'll be used as the file
# file to have the file extension that matches. # extension for that file.
# #
# For example, if the user uploads "myfile.png", but the file is actually a # For example, if the user uploads "myfile" with no extension, and the file is a jpeg
# jpg, the file will get a URL like "eAa.jpg" # image, the file will get a URL like "eAa.jpg"
# #
# For a list of MIME types you can use in this list, check # For a list of MIME types you can use in this list, check
# https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types # https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types