Bug #6209

Not uploading a file for a resource leads to an error

Added by Karsten Dambekalns almost 12 years ago. Updated about 11 years ago.

Status:
Resolved
Priority:
Must have
Category:
Property
Start date:
2010-01-25
Due date:
% Done:

100%

Estimated time:
PHP Version:
Has patch:
Complexity:

Description

Try creating a post without uploading a file and you'll get a nice exception:

#1259748358: A valid sha1 hash must be passed to this constructor.

The "uploaded file" has an error status of UPLOAD_ERR_NO_FILE, so this need to be checked and handled accordingly.

Also available in: Atom PDF