question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Validate only last files when ngf-keep="true

See original GitHub issue

When ngf-select ngf-keep="true" ngf-multiple="true" (and ngf-max-size="3MB" with upload on submit) and I add invalid file/files (maxSize exceeded in my case) files model is invalid (correctrly), but if next I add a valid file/files, then files model is valid (incorrectly). This seems to be incorrect, beceause in files model still is invalid file/files waiting to upload.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:13 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
madurapacommented, Mar 9, 2016

I’ve missed that option, It makes life easier 😉

1reaction
danialfaridcommented, Feb 24, 2016

@madurapa It is already attached to each file, just set ng-model-options="{allowInvalid: true}" to get all files with their error reason etc. '$errorand$errorParam` it is mentioned in the docs. @jar240 you can also use this approach. If you have this option set and update the model the validations will be revalidated.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Is it possible to copy/move only the most recent file (Last ...
Solved: Is it possible to copy/move only the most recent file (Last modified) in a folder using Power Automate Desktop? How can I...
Read more >
Validation of file extension before uploading file - Stack Overflow
The validation whether the uploaded file is an image is done in server side only, by checking the magic numbers in the file...
Read more >
Getting data from the latest file in a folder using Power Query
Select Data->Get Data -> From File -> From Folder and in a new window input folder path and click OK.
Read more >
How to List Last Five Modified Files in Linux - Baeldung
2. Listing Last Modified Files. Assume we have a directory containing ten files named file-1. · 3. Using head. Now to limit the...
Read more >
Validating Database Files and Backups
Previous · Next. Page 28 of 48 ... Validating Database Files with BACKUP VALIDATE ... Permits only one restore operation for each data...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found