VLC v1 finished, improve on instructions, improve on infra
This commit is contained in:
@@ -213,8 +213,7 @@ def get_wallpaper():
|
||||
if wallpaper_path:
|
||||
try:
|
||||
# Ensure the filename is secure
|
||||
filename = secure_filename(os.path.basename(wallpaper_path))
|
||||
return send_file(wallpaper_path, attachment_filename=filename)
|
||||
return send_file(wallpaper_path, mimetype='image/png')
|
||||
except Exception as e:
|
||||
app.logger.error(f"An error occurred while serving the wallpaper file: {e}")
|
||||
abort(500, description="Unable to serve the wallpaper file")
|
||||
|
||||
Reference in New Issue
Block a user