Comments (7)
Could you please give an example on how to subscribe to this event?
It was so easy that now I'm feeling ashamed of myself...
If anyone also confused about this -
uploader.onAfterAddingFile = (fileItem) => { //Your code }
from ng2-file-upload.
Isn't that already there?
onAfterAddingFile is called here
So you could just use uploader.onAfterAddingFile if I am not mistaken?
I would like to add an onBeforeAddingFile though, to resize the image in case it is too big using the source code from @ribizli.
from ng2-file-upload.
@bergben Was there every any update on adding onBeforeAddingFile?
from ng2-file-upload.
it will be there
from ng2-file-upload.
@bergben feel free to reuse my source.
from ng2-file-upload.
Hi, Is there an example how to use onAfterAddingFile in a controller?
from ng2-file-upload.
@perrosen I don't know, I have lost track of it as I have implemented my own file-input library without the whole upload functionality as this library would have been overkill for my purposes...
from ng2-file-upload.
Related Issues (20)
- Compatibility with Angular 15 HOT 2
- Release Angular 15 compatible ng2-file-upload package (version 4.0.0 should get tagged as latest) HOT 6
- Angular v13 peerDependency support was removed
- Angular 16 Support HOT 4
- version 1.4.0 not compatible with Ivy engine HOT 1
- Make url optional
- Drag Folder With Files
- Dealing with UploadAll Function
- Existing Files - Add to upload queue as already completed
- .upload() uploads all files, not just one
- Inquiry About Code Contribution Procedure
- Angular V17 support HOT 12
- Directive not recognized even though Module is included HOT 1
- Blob.type is empty can still pass the Mime filter
- Could the file upload widget support pasting a buffered image from clipboard?
- ng2FileSelect not clickable HOT 1
- Angular 18 Support HOT 6
- Impossible to select file with the same name twice in select single mode HOT 1
- Support for Angular 18 HOT 2
- How to upload large files in parts
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ng2-file-upload.