Skip to content

Commit

Permalink
MARP-1687 Release Preview page - update max multipart size
Browse files Browse the repository at this point in the history
  • Loading branch information
quanpham-axonivy committed Dec 31, 2024
1 parent ce4506e commit 5a53c70
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import { DisplayValue } from '../../shared/models/display-value.model';
import { MultilingualismPipe } from '../../shared/pipes/multilingualism.pipe';

const DEFAULT_ACTIVE_TAB = 'description';
const MAX_FILE_SIZE_MB = 20;
@Component({
selector: 'app-release-preview',
standalone: true,
Expand Down Expand Up @@ -85,7 +86,7 @@ export class ReleasePreviewComponent {
const input = event.target as HTMLInputElement;
if (input.files && input.files.length > 0) {
const file = input.files[0];
const maxFileSize = 20 * 1024 * 1024;
const maxFileSize = MAX_FILE_SIZE_MB * 1024 * 1024;
this.selectedFile = file;

// Check if the selected file is a ZIP file
Expand Down

0 comments on commit 5a53c70

Please sign in to comment.