![](/img/trans.png)
[英]How to get error logs in NPM ng2-file-upload in Angular 5?
我正在使用 npm ng2-file-upload package 將圖像文件上傳到 S3。 我正在使用onErrorItem掛鈎來了解是否有任何錯誤,並且我將item.isError設為true ,this.uploader.onErrorItem = ((item, response, sta ...
[英]How to get error logs in NPM ng2-file-upload in Angular 5?
我正在使用 npm ng2-file-upload package 將圖像文件上傳到 S3。 我正在使用onErrorItem掛鈎來了解是否有任何錯誤,並且我將item.isError設為true ,this.uploader.onErrorItem = ((item, response, sta ...
[英]Angular Ng2-file-Upload Upload.all() not uploading file to API
我正在嘗試上傳文件 mp4 和 jpg 擴展名,我有 2 個單獨的 Fileuploader 實例,對 2 個單獨的 FileUploader 施加了一些自定義驗證,我有一個上傳按鈕,上傳按鈕的 onclick 正在將 2 個 FileUploader 中的文件推送到單個 FileUploader ...
[英]how to submit input data along with ng2 file upload angular ionic
請我想以角度離子發送一些帶有文件上傳(ng2文件上傳)的文本數據。 我也是 angular 和 ionic 的新手。 我嘗試了很多選擇,但似乎沒有出路。 我使用 PHP 作為后端。我只能發送文件,但不能發送用戶名等輸入數據。 同時,我能夠在控制台上記錄用戶名的輸入數據,但服務器響應為空。 它永遠不會 ...
[英]ng2-file-upload - how to add MIME type for '.dmg' file format?
我正在嘗試允許上傳.dmg文件。 但不工作。 為此添加 mime 的正確方法是什么? 這是我的嘗試: 提前致謝。 ...
[英]ng2-file-upload, new FileUpload() does not create new instance for an additional component, when looping with *ngFor
我有多種格式,我循環(使用 ngFor)來創建新組件。 每個組件都有通過構造函數(new FileUploader())實現的 ng2-file-upload。 但是,如果我添加一個新文件並顯示它,它也會添加/顯示在其他組件的上傳器上,這不應該是這種情況。 錯過了什么? https://stack ...
[英]How can I send additional parameters via ng2-file-upload when I upload a file
我創建了兩個選擇,並希望在上傳期間將它們的值作為參數發送到后端。 你知道怎么做嗎? 你能幫我嗎? 我的代碼: ...
[英]How to upload photo (ng2-file-upload) Angular cannot read property 'push' of undefined
我正在嘗試為 Recipe 上傳新照片,這有點奏效。 照片正在上傳,但我在控制台中出錯,要查看新照片,我必須刷新瀏覽器。 我使用 asp.net core 作為模型和控制器,使用 angular 作為視圖如何解決這個問題? 成分 html 如果上傳正常,為什么會出現此錯誤 ...
[英]Creating an Observable that binds to an existing function
我一直在嘗試將ng2-file-upload包中的onCompleteItem數組函數綁定到我可以訂閱的 RxJS Observable 方法。 這是我正在談論的功能: ..在使用中幾乎與以下相同: 這是MyComponent的相關部分,目前正在運行: 我嘗試將其綁定到 Observ ...
[英]Angular ng2-file-upload Input File Filter not working for PNG in Internet Explorer
我正在使用 ng2-file-upload 中的文件上傳器,並帶有文件類型限制。 但是,每次我使用 Internet Explorer 11 選擇 png 文件時,它都不會添加到隊列中。 所有其他允許的文件類型都在工作。 這是帶有文件選項的代碼: let uploadOptions: ...
[英]Asynchronous upload File with ng2-file-upload
我正在使用ng2-file-upload模塊上傳大文件。 上傳是通過編碼為 java 的后端完成的由於這些文件的導入需要相當長的時間,前后端之間創建的 http 連接使 nginx 服務器超時退出。 如何以異步方式使用ng2-file-upload模塊? 到目前為止,我已經以這種方式實例化了 Fil ...
[英]ng2 file upload not allowing me to add same doc after I've removed it from que
我在使用ng2-file-upload 時遇到了一個小問題,我試圖阻止用戶兩次上傳/使用同一個文件。 意思是,將相同的文件添加到隊列但尚未上傳)。 所以我可以添加這樣的文檔 this.uploader = new FileUploader({ url: this.baseUrl + ...
[英]ng2-file-upload doesn't work when I do not have office installed
我在沒有安裝任何辦公室的情況下在我的 vm 上測試了 ng2-file-upload,我試圖上傳一個文件類型為 .doc 和 .docx 的文件,它讓我一直處於這種狀態 - > this.uploader.onWhenAddingFileFailed = (item, filter, op ...
[英]How to display image thumbnail using angular image upload
我正在使用ng2-file-upload上傳圖像。 一切正常,但在我選擇圖像后,它會顯示選定的圖像縮略圖。 請查看我的stackblitz 鏈接 提前致謝 ...
[英]File upload feature/library in Angular 6 or above
尋找一個兼容 Angular 6 或更高版本的免費/開源文件上傳庫來上傳 csv 文件和其他文件擴展名,並得到開發人員的良好支持和維護。 此外,還支持上傳大型 csv 文件(最多 200 萬條記錄)和與后端代碼 (C# .NET) 高效交互等用例。 到目前為止,已經評估了“ng2-file-uplo ...
[英]How to appropriately change the filename for ng2-file-uploader in angular
我想通過 ng2-file-uploader 更改 angular 中的圖像名稱,然后將其傳遞給我的 node.js 中的 multer。 一切正常。 我能夠接收到圖像,並且它存儲在服務器端的上傳目錄中。 只是我不知道在哪里更改圖像名稱。 我在 onCompleteItem 方法中嘗試過,但沒有。 ...
[英]How to set `minimum` file size for upload
我正在使用Ang2-application將ng2-file-upload用於文件上傳要求。 在此指令中,我可以設置maxFileSize但事實是,有一種方法可以上傳僅空文件。 所以我正在尋找一種解決方案,以防止空文件上傳。 有沒有辦法測試它並拋出錯誤? 或者我可以設置上傳的最小大小 ...
[英]angular ng2-file-upload get blob of file uploaded
我正在使用 ng2-file-upload 來上傳任何類型的圖像和文件,常規示例工作正常,但我實際上想檢索上傳的文件的 blob 並且不使用常規處理,因為我要去在服務器端做我自己的處理。 任何人都可以告訴如何在選擇后上傳文件的blob? 我想做的是這樣的: ...
[英]Not able to upload `.flv` - file(s) with ng2-file-upload
這是我的啞劇類型: 當我嘗試上傳.flv文件時,由於invalid file type而出現錯誤。 我的聲明有什么問題? 有人幫我嗎? 所有其他文件類型都可以正常工作。 this.fileUploader = new FileUploader( { allowedMimeT ...
[英]How do I use ng2-file-upload with devise token auth?
我目前正在嘗試使用ng2-file-upload和devise令牌auth .: https://devise-token-auth.gitbook.io/devise-token-auth/conceptual 。 文件上傳器當前直接處理http請求,因此,我沒有使用angular toke ...
[英]ng2-file-upolad - Is there a way to validate file name length?
我正在使用ng2-file-upload在我需要幫助的地方,據我的客戶說,他正在嘗試將文件名限制為1024字符。 他從文件名生成超鏈接。 當頁面名稱長度超過1024個字符時,我想設置一個錯誤。 正確的方法是什么? 我正在使用onWhenAddingFileFailed方法。 如 ...