let container = this.$el;
let _this = this;
this._dz = new DropZone(container, {
- addRemoveLinks: true,
- dictRemoveFile: trans('components.image_upload_remove'),
+ addRemoveLinks: true,
+ dictRemoveFile: trans('components.image_upload_remove'),
+ timeout: +window.dropZoneTimeout || 60000,
url: function() {
return _this.uploadUrl;
},
data.append('_token', token);
let uploadedTo = typeof _this.uploadedTo === 'undefined' ? 0 : _this.uploadedTo;
data.append('uploaded_to', uploadedTo);
+
+ xhr.ontimeout = function (e) {
+ _this.$events.emit('error', trans('errors.file_upload_timeout'));
+ }
});
dz.on('success', function (file, data) {
'uploaded' => 'الخادم لا يسمح برفع ملفات بهذا الحجم. الرجاء محاولة الرفع بحجم أصغر.',
'image_upload_error' => 'حدث خطأ خلال رفع الصورة',
'image_upload_type_error' => 'صيغة الصورة المرفوعة غير صالحة',
+ 'file_upload_timeout' => 'انتهت عملية تحميل الملف.',
// Attachments
'attachment_page_mismatch' => 'Page mismatch during attachment update', // جار البحث عن الترجمة الأنسب
'server_upload_limit' => 'Der Server verbietet das Hochladen von Dateien mit dieser Dateigröße. Bitte versuchen Sie es mit einer kleineren Datei.',
'image_upload_error' => 'Beim Hochladen des Bildes trat ein Fehler auf.',
'image_upload_type_error' => 'Der Bildtyp der hochgeladenen Datei ist ungültig.',
+ 'file_upload_timeout' => 'Der Upload der Datei ist abgelaufen.',
+
// Attachments
'attachment_page_mismatch' => 'Die Seite stimmte nach dem Hochladen des Anhangs nicht überein.',
'attachment_not_found' => 'Anhang konnte nicht gefunden werden.',
'uploaded' => 'The server does not allow uploads of this size. Please try a smaller file size.',
'image_upload_error' => 'An error occurred uploading the image',
'image_upload_type_error' => 'The image type being uploaded is invalid',
+ 'file_upload_timeout' => 'The file upload has timed out.',
// Attachments
'attachment_page_mismatch' => 'Page mismatch during attachment update',
'uploaded' => 'El servidor no permite la subida de ficheros de este tamaño. Intente subir un fichero de menor tamaño.',
'image_upload_error' => 'Ha ocurrido un error al subir la imagen',
'image_upload_type_error' => 'El tipo de imagen que se quiere subir no es válido',
+ 'file_upload_timeout' => 'La carga del archivo ha caducado.',
// Attachments
'attachment_page_mismatch' => 'Página no coincidente durante la subida del adjunto ',
'uploaded' => 'El servidor no permite subir archivos de este tamaño. Por favor intente un tamaño menor.', 'image_upload_error' => 'Ha ocurrido un error al subir la imagen',
'image_upload_error' => 'Ha ocurrido un error al subir la imagen',
'image_upload_type_error' => 'El tipo de imagen subida es inválido.',
+ 'file_upload_timeout' => 'La carga del archivo ha caducado.',
// Attachments
'attachment_page_mismatch' => 'Página no coincidente durante la subida del adjunto ',
'uploaded' => 'Le serveur n\'autorise pas l\'envoi d\'un fichier de cette taille. Veuillez essayer avec une taille de fichier réduite.',
'image_upload_error' => 'Une erreur est survenue pendant l\'envoi de l\'image',
'image_upload_type_error' => 'LE format de l\'image envoyée n\'est pas valide',
+ 'file_upload_timeout' => 'Le téléchargement du fichier a expiré.',
// Attachments
'attachment_page_mismatch' => 'Page incorrecte durant la mise à jour du fichier joint',
'server_upload_limit' => 'Il server non permette un upload di questa grandezza. Prova con un file più piccolo.',
'image_upload_error' => 'C\'è stato un errore caricando l\'immagine',
'image_upload_type_error' => 'Il tipo di immagine in upload non è valido',
+ 'file_upload_timeout' => 'Il caricamento del file è scaduto.',
// Attachments
'attachment_page_mismatch' => 'Page mismatch during attachment update',
'cannot_create_thumbs' => 'このサーバはサムネイルを作成できません。GD PHP extensionがインストールされていることを確認してください。',
'server_upload_limit' => 'このサイズの画像をアップロードすることは許可されていません。ファイルサイズを小さくし、再試行してください。',
'image_upload_error' => '画像アップロード時にエラーが発生しました。',
+ 'file_upload_timeout' => 'ファイルのアップロードがタイムアウトしました。',
// Attachments
'attachment_page_mismatch' => '添付を更新するページが一致しません',
'uploaded' => '해당 크기의 파일을 업로드하는것이 서버에서 제한됩니다. 파일 사이즈를 작게 줄이거나 서버 설정을 변경하세요.',
'image_upload_error' => '이미지를 업로드하는 중에 오류가 발생했습니다.',
'image_upload_type_error' => '업로드중인 이미지 유형이 잘못되었습니다.',
+ 'file_upload_timeout' => '파일 업로드가 시간 초과되었습니다.',
// Attachments
'attachment_page_mismatch' => '첨부 파일 업데이트 중 페이지 불일치하였습니다.',
'cannot_create_thumbs' => 'De server kon geen thumbnails maken. Controleer of je de GD PHP extensie geïnstalleerd hebt.',
'server_upload_limit' => 'Het afbeeldingsformaat is te groot. Probeer een kleinere bestandsgrootte.',
'image_upload_error' => 'Er ging iets fout bij het uploaden van de afbeelding',
+ 'file_upload_timeout' => 'Het uploaden van het bestand is verlopen.',
// Attachments
'attachment_page_mismatch' => 'Bij het bijwerken van de bijlage bleek de pagina onjuist',
'cannot_create_thumbs' => 'Serwer nie może utworzyć miniaturek. Upewnij się że rozszerzenie GD PHP zostało zainstalowane.',
'server_upload_limit' => 'Serwer nie pozwala na przyjęcie pliku o tym rozmiarze. Spróbuj udostępnić coś o mniejszym rozmiarze.',
'image_upload_error' => 'Wystąpił błąd podczas udostępniania obrazka',
+ 'file_upload_timeout' => 'Przesyłanie pliku przekroczyło limit czasu.',
// Attachments
'attachment_page_mismatch' => 'Niezgodność stron podczas aktualizacji załącznika',
'uploaded' => 'O servidor não permite o upload de arquivos com esse tamanho. Por favor, tente fazer o upload de arquivos de menor tamanho.',
'image_upload_error' => 'Um erro aconteceu enquanto o servidor tentava efetuar o upload da imagem',
'image_upload_type_error' => 'O tipo de imagem que está sendo feito upload é inválido',
+ 'file_upload_timeout' => 'O upload do arquivo expirou.',
// Attachments
'attachment_page_mismatch' => 'Erro de \'Page mismatch\' durante a atualização do anexo',
'uploaded' => 'Сервер не позволяет загружать файлы такого размера. Пожалуйста, попробуйте файл меньше.',
'image_upload_error' => 'Произошла ошибка при загрузке изображения.',
'image_upload_type_error' => 'Неправильный тип загружаемого изображения',
+ 'file_upload_timeout' => 'Выгрузка файла закончилась.',
// Attachments
'attachment_page_mismatch' => 'Несоответствие страницы во время обновления вложения',
'cannot_create_thumbs' => 'Server nedokáže vytvoriť náhľady. Skontrolujte prosím, či máte nainštalované GD rozšírenie PHP.',
'server_upload_limit' => 'Server nedovoľuje nahrávanie súborov s takouto veľkosťou. Skúste prosím menší súbor.',
'image_upload_error' => 'Pri nahrávaní obrázka nastala chyba',
+ 'file_upload_timeout' => 'Nahrávanie súboru vypršalo.',
// Attachments
'attachment_page_mismatch' => 'Page mismatch during attachment update',
'uploaded' => 'Servern tillåter inte så här stora filer. Prova en mindre fil.',
'image_upload_error' => 'Ett fel inträffade vid uppladdningen',
'image_upload_type_error' => 'Filtypen du försöker ladda upp är ogiltig',
+ 'file_upload_timeout' => 'Filuppladdningen har tagits ut.',
// Attachments
'attachment_page_mismatch' => 'Fel i sidmatchning vid uppdatering av bilaga',
'server_upload_limit' => '服务器不允许上传此大小的文件。 请尝试较小的文件。',
'uploaded' => 'The server does not allow uploads of this size. Please try a smaller file size.',
'image_upload_error' => '上传图片时发生错误',
- 'image_upload_type_error' => '上传的图像类型无效',
+ 'image_upload_type_error' => '上传的图像类型无效',
+ 'file_upload_timeout' => '文件上传已超时。',
// Attachments
'attachment_page_mismatch' => '附件更新期间的页面不匹配',
'uploaded' => '上傳的檔案大小超過伺服器允許上限。請嘗試較小的檔案。',
'image_upload_error' => '上傳圖片時發生錯誤',
'image_upload_type_error' => '上傳圖片類型錯誤',
+ 'file_upload_timeout' => '文件上傳已超時。',
// Attachments
'attachment_page_mismatch' => '附件更新期間的頁面不符合',