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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user