Project

General

Profile

Feature #250

when you upload a file, if this exceeds the maximum size allowed by php, display a message

Added by Carlos Vargas about 10 years ago. Updated over 9 years ago.

Status:
Bug resolved
Priority:
Low
Category:
-
Target version:
Start date:
02/12/2009
Due date:
% Done:

50%

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

Description

when you upload a file, if this exceeds the maximum size allowed by php display a message with the maximum size allowed


Related issues

Related to Chamilo LMS - Feature #496: Create a new tab in the Portal Administration call "System" or "Server settings"Feature implemented12/01/2010

Actions

History

#1

Updated by Carlos Vargas about 10 years ago

Actualizado por Yannick Warnier hace alrededor de 1 mes

  • Fecha fin changed from 2009-05-18 to 2009-11-02 * Estado changed from New to Assigned * Asignado a changed from 0 to Julio Montoya * VersiĆ³n prevista changed from 1.8.6 SVN to 1.8.6.2 * Tiempo estimado set to 2.00 * Complexity set to Average

Comment

Yes, this could be done by modifying the formvalidator class to add the MAX_FILE_SIZE hidden element to all forms with file upload, using the results from the get_ini('upload_max_filesize') call.

#2

Updated by Yannick Warnier almost 10 years ago

  • Target version changed from 1.8.6.2 alpha to 1.8.6.2 RC1
#3

Updated by Julio Montoya almost 10 years ago

The "<INPUT type=hidden name=MAX_FILE_SIZE VALUE=X>" solution is not a real solution since it depends in the browser, IE, FF, etc
Also this is easy to hack.

This issue could be solve with an php ini

display_error off
increasing the upload_max_filesize and post_max_size

I did a quick research see:

http://bugs.php.net/bug.php?id=13245
http://bugs.php.net/bug.php?id=43366

Also we can use a Ajax uploader to avoid this problems like this...

http://valums.com/wp-content/uploads/ajax-upload/demo-jquery.htm

This should be move to 1.8.7 or 1.8.6.3

#4

Updated by Julio Montoya almost 10 years ago

  • Status changed from New to Needs more info
  • Assignee changed from Julio Montoya to Carlos Vargas
  • % Done changed from 0 to 50
  • SCRUM pts - complexity changed from ? to 2
#5

Updated by Christian Alberto Fasanando Flores almost 10 years ago

  • Target version changed from 1.8.6.2 RC1 to 1.8.7
#6

Updated by Yannick Warnier almost 10 years ago

  • Assignee changed from Carlos Vargas to Julio Montoya
  • Priority changed from Normal to Low
  • Target version changed from 1.8.7 to 1.8.7 beta
#7

Updated by Yannick Warnier over 9 years ago

  • Target version changed from 1.8.7 beta to 1.8.7 RC1
#8

Updated by Julio Montoya over 9 years ago

I already answer that question:

The "<INPUT type=hidden name=MAX_FILE_SIZE VALUE=X>" solution is not a real solution since it depends in the browser, IE, FF, etc
Also this is easy to hack.

This issue could be solve with an php ini

display_error off
increasing the upload_max_filesize and post_max_size

#9

Updated by Julio Montoya over 9 years ago

  • Assignee changed from Julio Montoya to Yannick Warnier
#10

Updated by Julio Montoya over 9 years ago

  • Target version changed from 1.8.7 RC1 to 1.8.7
#11

Updated by Yannick Warnier over 9 years ago

  • Subject changed from when you upload a file, if this exceeds the maximum size allowed by php display a message to when you upload a file, if this exceeds the maximum size allowed by php, display a message
  • Status changed from Needs more info to Bug resolved
  • Target version changed from 1.8.7 to 1.8.7.1

Not entirely satisfied, but I think the MAX_FILE_SIZE value is enough to cope with a first series of errors. Reassigning to 1.8.7.1 to check it later on.

Also available in: Atom PDF