|
|
@@ -113,7 +113,7 @@ def upload_file():
|
|
|
# Crear enlace temporal (expira en 24 horas)
|
|
|
# Usar el dominio configurado o el host actual
|
|
|
domain = os.getenv('DOMAIN', request.host)
|
|
|
- protocol = 'https' if request.is_secure else 'http'
|
|
|
+ protocol = 'https' if args.https else 'http'
|
|
|
download_url = f"{protocol}://{domain}/download/{file_id}"
|
|
|
|
|
|
return jsonify({
|