Эх сурвалжийг харах

Added .fas as a valid upload file extension

E.Cannon 9 жил өмнө
parent
commit
5cf53e82dc

+ 2 - 2
includes/blast_ui.form_per_program.inc

@@ -124,7 +124,7 @@ function blast_ui_per_blast_program_form($form, $form_state) {
     '#title' => 'Or upload your own query FASTA:  ',
     '#title' => 'Or upload your own query FASTA:  ',
     '#type' => 'managed_file',
     '#type' => 'managed_file',
     '#description' => t('The file should be a plain-text FASTA
     '#description' => t('The file should be a plain-text FASTA
-(.fasta, .fna, .fa) file. In other words, it cannot have formatting as is the
+(.fasta, .fna, .fa, .fas) file. In other words, it cannot have formatting as is the
 case with MS Word (.doc, .docx) or Rich Text Format (.rtf). It cannot be greater
 case with MS Word (.doc, .docx) or Rich Text Format (.rtf). It cannot be greater
 than %max_size in size. <strong>Don\'t forget to press the Upload button before
 than %max_size in size. <strong>Don\'t forget to press the Upload button before
 attempting to submit your BLAST.</strong>',
 attempting to submit your BLAST.</strong>',
@@ -133,7 +133,7 @@ attempting to submit your BLAST.</strong>',
       )
       )
     ),
     ),
     '#upload_validators' => array(
     '#upload_validators' => array(
-      'file_validate_extensions' => array('fasta fna fa'),
+      'file_validate_extensions' => array('fasta fna fa fas'),
       'file_validate_size' => array(file_upload_max_size()),
       'file_validate_size' => array(file_upload_max_size()),
     ),
     ),
   );
   );