fix: analiz icin dosya yuklenemiyordu — nginx varsayilan 1 MB govde siniri 413 veriyordu (arayuz 10 MB vaat ediyor); 20 MB + 300 sn zaman asimi, 413/504 icin anlasilir hata mesaji, 10 MB on kontrol

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
2026-09-02 13:48:22 +03:00
co-authored by Claude Fable 5.1
parent 920a147126
commit b41bc338af
5 changed files with 25 additions and 4 deletions
+4
View File
@@ -34,6 +34,10 @@ export const TenderDocuments = ({ tender }) => {
const f = e.target.files?.[0];
e.target.value = '';
if (!f) return;
if (f.size > 10 * 1024 * 1024) {
setError(`Yüklenemedi: ${f.name} ${(f.size / 1048576).toFixed(1)} MB — sınır 10 MB.`);
return;
}
setYukleniyor(true); setError(null);
try {
await uploadDocument(f, 'İhale Dokümanı', ikn);