0
使用此按鈕上傳文本文件,對文件類型的檢查不適用於我,文件被考慮有效。當ngf-accept =「'image/*'」時,ng-file-upload正在接受任何文件類型
<button ng-hide="uploading" class="btn centered" type="file"
ngf-select="uploadFiles($file, $invalidFiles)" accept="'image/*'"
ngf-max-size="4MB" ngf-accept="'image/*'">
{{(boardingData.profile_pic_url) ? "Change Photo" : "Upload a Photo"}}
</button>
嘗試改變按鈕輸入 –
@ Love-Kesh我真的想保持一個按鈕 –