comparison mrjunejune/main.c @ 206:240337164a80

[Seobeo] SSL should be used for large file as well lol.
author MrJuneJune <me@mrjunejune.com>
date Sun, 15 Feb 2026 11:41:53 -0800
parents e5aed6c36672
children e82b80b24012
comparison
equal deleted inserted replaced
205:e07b4b5a66bb 206:240337164a80
1400 &ctx->s3_config, tmp_output, ctx->s3_key_processed, "image/webp"); 1400 &ctx->s3_config, tmp_output, ctx->s3_key_processed, "image/webp");
1401 1401
1402 if (!upload_result.success) 1402 if (!upload_result.success)
1403 { 1403 {
1404 const char *error_msg = upload_result.error_message ? upload_result.error_message : "Failed to upload processed file"; 1404 const char *error_msg = upload_result.error_message ? upload_result.error_message : "Failed to upload processed file";
1405 Seobeo_Log(SEOBEO_ERROR, "[MEDIA] ERROR: Failed to upload processed file for media_id=%lld: %s\n", 1405 Seobeo_Log(SEOBEO_ERROR, "[MEDIA] ERROR: Failed to upload processed file for media_id=%lld: %s (HTTP status: %d)\n",
1406 (long long)ctx->media_id, error_msg); 1406 (long long)ctx->media_id, error_msg, upload_result.status_code);
1407 const char *update_error = 1407 const char *update_error =
1408 "UPDATE media_uploads SET status='error', error_message=?, updated_at=strftime('%s','now') WHERE id=?"; 1408 "UPDATE media_uploads SET status='error', error_message=?, updated_at=strftime('%s','now') WHERE id=?";
1409 const char *error_params[] = { error_msg, media_id_str }; 1409 const char *error_params[] = { error_msg, media_id_str };
1410 Deita_Query_Execute_Update_Prepared(db_conn, update_error, 2, error_params); 1410 Deita_Query_Execute_Update_Prepared(db_conn, update_error, 2, error_params);
1411 unlink(tmp_input); 1411 unlink(tmp_input);