fix: resolve image display issues after refactor
- Fix upload folder path to be relative to Flask app static folder - Update app initialization to use proper static folder structure - Change default development port to 5001 to avoid AirPlay conflicts - Images now display correctly in both public and admin views The refactored app now properly serves uploaded images from the correct static file location. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -11,8 +11,8 @@ class Config:
|
||||
# Flask settings
|
||||
SECRET_KEY = os.environ.get('SECRET_KEY') or os.urandom(24)
|
||||
|
||||
# Upload settings
|
||||
UPLOAD_FOLDER = os.environ.get('UPLOAD_FOLDER') or 'app/static/uploads'
|
||||
# Upload settings
|
||||
UPLOAD_FOLDER = os.environ.get('UPLOAD_FOLDER') or 'static/uploads'
|
||||
MAX_CONTENT_LENGTH = 16 * 1024 * 1024 # 16MB max file size
|
||||
ALLOWED_EXTENSIONS = {'png', 'jpg', 'jpeg', 'gif'}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user