Open nervgh opened 10 years ago
For me no.
No
Comments: I don't need it - but I do like the idea of it being optional. It is included in the blueimp file upload that many people are used to (http://blueimp.github.io/jQuery-File-Upload/angularjs.html)
Yes, I didn't realise that it wasn't in the standard module because I downloaded the min.js version and couldn't understand why the example code wasn't producing thumbnails on my test. Very confusing to leave it in the examples and not include it in the package.
+1 Yes
+1 Yes
+1 Yes
No, I like creating my own directive for it.
Yes
Yes
Yes
yes
But just a very basic implementation with maximum flexibility.
"flexibility" is the first motivation to use your plugin.
If i will someday need a plugin that will do everything for me i'll take another one. But i will keep in mind, that such decision will force me to use strict flow and exact implementation scenario.
But can hardly imagine the real-life reason to do so.
for me no
+1 Yes
Yes
for image uploads, this is crucial. I was previously using v0.5
and I was able to generate thumbnails manually:
uploader.onAfterAddingFile = function(item) {
var _URL = $window.URL || $window.webkitURL;
var img = new Image();
img.onload = function() {
if (this.width !== 1200 || this.height !== 627) {
uploader.removeFromQueue(item);
toastr.error('Image size is not 1200x627!');
scope.$apply();
}
};
img.src = _URL.createObjectURL(item.file);
item.imgSrc = img.src;
updateSrcs();
};
however now, since the item.file
is a FileLikeObject, this doesn't work anymore.
@azharkhan..... Maybe item._file
works.
@ooqiaDev thanks for the help, I noticed that in the directive code that was in the example, and it solved the problems I was having. I appreciate the help.
I'm wondering why the FileLike object was created, (out of curiosity), rather than just using the File object.
Yes please... there are uploaded images on the server and when I load the page I want to them to be displayed. It will be a great help. Thanks in advance.
+1
Yes
yes On Jul 1, 2015 3:48 PM, "Morteza Ziaeemehr" notifications@github.com wrote:
Yes
— Reply to this email directly or view it on GitHub https://github.com/nervgh/angular-file-upload/issues/45#issuecomment-117582650 .
+1
Hello! Can't see on the docs - is this feature available now?
Yes/no? Comments are optional.
Demo - uploads only images (with canvas preview)