Compare commits
2 Commits
26c9fc50c3
...
b027af39a3
| Author | SHA1 | Date | |
|---|---|---|---|
| b027af39a3 | |||
|
|
a8ad8e2aba |
@@ -409,7 +409,8 @@ class InvoiceValidationResource extends Resource
|
|||||||
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
|
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
|
||||||
// 'application/vnd.ms-excel', // Legacy .xls fallback if needed
|
// 'application/vnd.ms-excel', // Legacy .xls fallback if needed
|
||||||
])
|
])
|
||||||
->rules(['mimes:xlsx']) // Laravel validation: extension check
|
->rules(['mimes:xlsx', 'max:50']) // Laravel validation: extension check
|
||||||
|
->maxSize(50)
|
||||||
->preserveFilenames() // <- this keeps the original filename
|
->preserveFilenames() // <- this keeps the original filename
|
||||||
->reactive()
|
->reactive()
|
||||||
->storeFiles(false) // prevent auto-storing, we will store manually
|
->storeFiles(false) // prevent auto-storing, we will store manually
|
||||||
@@ -758,7 +759,8 @@ class InvoiceValidationResource extends Resource
|
|||||||
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
|
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
|
||||||
// 'application/vnd.ms-excel', // Legacy .xls fallback if needed
|
// 'application/vnd.ms-excel', // Legacy .xls fallback if needed
|
||||||
])
|
])
|
||||||
->rules(['mimes:xlsx']) // Laravel validation: extension check
|
->rules(['mimes:xlsx', 'max:50']) // Laravel validation: extension check
|
||||||
|
->maxSize(50)
|
||||||
->preserveFilenames() // <- this keeps the original filename
|
->preserveFilenames() // <- this keeps the original filename
|
||||||
->reactive()
|
->reactive()
|
||||||
->storeFiles(false) // prevent auto-storing, we will store manually
|
->storeFiles(false) // prevent auto-storing, we will store manually
|
||||||
|
|||||||
Reference in New Issue
Block a user