After pioneering through ng-file-upload for the first time and getting images to work great, I am attempting to allow PDFs for uploading as well. However, I am not getting a $ngfBlobUrl back.
The following is the code and I use vm.cacheFiles to handle the data, which is were I am able to see $ngfBlobUrl for images, but not for PDFs.
The console.log allows me to view the files Array of Objects and this is where I can see $ngfBlobUrl for images but it is missing for PDFs.
I have attempted to configure the ngf-pattern in various ways and not using it all, including using the accept attribute in the same manner.
Do I possibly not have something set up correctly?
Hello,
After pioneering through ng-file-upload for the first time and getting images to work great, I am attempting to allow PDFs for uploading as well. However, I am not getting a
$ngfBlobUrl
back. The following is the code and I usevm.cacheFiles
to handle the data, which is were I am able to see$ngfBlobUrl
for images, but not for PDFs.The following is the
vm.cacheFiles
function that is called withinngf-select
attribute.The console.log allows me to view the
files
Array of Objects and this is where I can see$ngfBlobUrl
for images but it is missing for PDFs. I have attempted to configure thengf-pattern
in various ways and not using it all, including using theaccept
attribute in the same manner. Do I possibly not have something set up correctly?Thank you for your time.