Project

General

Profile

Bug #3260

Check work upload file size before confirming upload

Added by Yannick Warnier over 8 years ago. Updated over 8 years ago.

Status:
Feature implemented
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
13/04/2011
Due date:
21/04/2011
% Done:

100%

Estimated time:
0.50 h
Complexity:
Normal
SCRUM pts - complexity:
2

Description

Make a filesize() check on works uploaded before confirming to the user that his task has been uploaded. Apparently, there are various cases where the document as a size of 0 and a confirmation message is sent to the user, which confuses everybody.

I suppose the code for that would be in document.lib.php, fileupload.lib.php or work.lib.php

Associated revisions

Revision 6e2d05f8 (diff)
Added by Julio Montoya over 8 years ago

Adding validation in the work and document tool when uploading a file with size 0 see #3260

Revision 899114d1 (diff)
Added by Julio Montoya over 8 years ago

Adding a more accurate message: UplUploadFailedSizeIsZero see #3260

History

#1

Updated by Julio Montoya over 8 years ago

  • Status changed from Assigned to Needs more info
  • Assignee changed from Julio Montoya to Yannick Warnier
  • % Done changed from 0 to 50
#2

Updated by Yannick Warnier over 8 years ago

  • Status changed from Needs more info to Assigned
  • Assignee changed from Yannick Warnier to Julio Montoya

Julio Montoya wrote:

I added your suggestions:

http://code.google.com/p/chamilo/source/detail?r=146dadf45d09a8dd2a2b16809f7a8e76e0b87485&repo=classic

OK, but the message should be more explicit (new language variable: $UplUploadFailedSizeIsZero)

#3

Updated by Julio Montoya over 8 years ago

  • Status changed from Assigned to Needs more info
  • Assignee deleted (Julio Montoya)
  • % Done changed from 50 to 70
#4

Updated by Yannick Warnier over 8 years ago

  • Status changed from Needs more info to Feature implemented
  • Assignee set to Julio Montoya
  • % Done changed from 70 to 100

Also available in: Atom PDF