To participate you must create an account on apostrophenow.org. If you have already done so, click Login.

Show
Ignore:
Timestamp:
09/03/10 18:01:27 (21 months ago)
Author:
tboutell
Message:

Fixed uploads in which one or more files are not acceptable.

Moved all validation to the annotation form. The initial upload form now validates only that you uploaded at least one thing. After that you're off to the land of annotation. This eliminates a lot of duplicate code that is hard to maintain

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • plugins/apostrophePlugin/trunk/modules/aMedia/templates/uploadSuccess.php

    r2134 r2136  
    1616    <?php echo $form->renderGlobalErrors() ?> 
    1717 
     18    <?php // Error message if they don't select anything at all. This is the only validation done in this pass ?> 
     19    <?php if ($mustUploadSomething): ?> 
     20      <h4>You must select a file to upload with the Browse Files button.</h4> 
     21    <?php endif ?> 
     22     
    1823    <form method="POST" action="<?php echo url_for("aMedia/upload") ?>" enctype="multipart/form-data" id="a-media-upload-form"> 
    1924      <?php echo $form->renderHiddenFields() ?>