Skip to content

Commit

Permalink
Change attachments in DB to attachments on Disk - Angular max file si…
Browse files Browse the repository at this point in the history
…ze increase to 1000MB
  • Loading branch information
tomaszkononowicz committed Dec 1, 2018
1 parent 11c378f commit c09f9ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kiohub-client/src/app/utils/validation-patterns.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class Validation {
readonly MAX_SIZE_EMAIL = 30;

readonly MAX_FILENAME_LENGTH = 255;
readonly MAX_FILE_SIZE = 100000000; // in bytes
readonly MAX_FILE_SIZE = 1000000000; // in bytes

readonly WRONG_EXTENSION = 'Niepoprawny typ pliku lub plik jest zbyt duży (maksymalny rozmiar to ' + this.getMaxFileSizeInMegaBytes() + '). '
+ 'Podaj plik z jednym z poniższych rozszerzeń: ';
Expand Down Expand Up @@ -95,7 +95,7 @@ export class Validation {
}

getMaxFileSizeInMegaBytes() {
return 100 + ' MB';
return 1000 + ' MB';
}

// ******** REGEX PATTERNS ********
Expand Down

0 comments on commit c09f9ae

Please sign in to comment.