About 9,760,000 results
Open links in new tab
  1. how to validate files before uploading in angular 6

    In your component, create a function to read your file: readFile(fileEvent: any) { const file = fileEvent.target.files[0]; console.log('size', file.size); console.log('type', file.type); } And apply it …

  2. Angular 5 how to get file name from input with type = file

    Jul 26, 2018 · It need to be done using pure javascript. const file: File = event[0]; console.log(file); You should add explanation. Your answer could be improved with additional supporting …

  3. Angular File Upload: Complete Guide - Angular University

    Mar 8, 2025 · The best way to handle file upload in Angular is to build one or more custom components, depending on the supported upload scenarios. A file upload component needs to …

  4. How can I represent file size in a human readable way in Angular 6?

    Oct 28, 2018 · var today = new Date(row[4]); let latest_date = this.datepipe.transform(today, 'yyyy-MM-dd'); row['4'] = latest_date; return row; HTML: <td [ngClass]="{'active': check(row) }" …

  5. Get File Info like Size, Name and Type from Multiple File Input …

    You can easily bind the $event object in Angular to an element, say a file input element, and pass the event information to your component event handler. This helps in understanding the type, …

  6. Angular 12 Input type File Validation with File Extension Type

    Sep 24, 2021 · ... import { FormBuilder, FormGroup, Validators } from '@angular/forms'; export class AppComponent { //Form Validables registerForm: any = FormGroup; submitted = false; …

  7. File Size Pipe in Angular - C# Corner

    Learn how to create a custom file size pipe in Angular, converting file sizes into human-readable formats. This tutorial covers the necessary steps using Angular CLI and Bootstrap.

  8. File validators in Angular – David Votrubec | Notes about …

    Apr 23, 2019 · Whenever you allow users to upload files to your server, you should have both client side and server side validation. Most likely you will validate file size and file type, …

  9. Handling files with ease using the new Angular file loader options

    Sep 23, 2024 · In Angular 17.1, new loader options have been introduced, simplifying the process of file handling. Here’s a quick overview of the key updates: ⬜ Text Loader (text): Transforms …

  10. How to Implement File Uploading in Angular Reactive Forms

    Mar 18, 2019 · In this article, I’ll walk you through the process of creating a reactive form that includes a file upload, along with the normal form fields. Along the way, we’ll create a custom …

  11. Some results have been removed
Refresh