mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
port to 4.1 fix user cvs file import error on windows
This commit is contained in:
@@ -55,7 +55,7 @@ $(function () {
|
||||
$('#fileupload').fileupload({
|
||||
dataType: 'html',
|
||||
add: function(e, data) {
|
||||
if( ! /(\.|\/)(csv|rtf)$/i.test(data.files[0].type)) {
|
||||
if( ! /(\.|\/)(csv|rtf)$/i.test(data.files[0].name)) {
|
||||
{% set supported_file_types = ['csv', 'rtf']|join(' | ') %}
|
||||
alert("{{ 'Invalid file type, only (%supported_file_types%) file formats are supported' | trans({'%supported_file_types%' : supported_file_types}) | e('js') }}");
|
||||
|
||||
|
Reference in New Issue
Block a user