MINOR: missing images that should be used after you upload files to show the file type.
MINOR: add a TODO comments for other dev to check later.
|
@ -111,6 +111,10 @@ class DMSUploadField extends UploadField {
|
|||
|
||||
// Attach the file to the related record.
|
||||
$document = $this->attachFile($file);
|
||||
|
||||
//TODO: both $document->UploadFieldThumbnailURL and $document->UploadFieldFileButtons are null,
|
||||
// check the code from UploadField.php where they use $file->UploadFieldThumbnailURL and $file->UploadFieldFileButtons
|
||||
// and $file is_a File but in our case $document is a Document, that is why it doesn't work.
|
||||
|
||||
// Collect all output data.
|
||||
$return = array_merge($return, array(
|
||||
|
|
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 259 B |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 390 B |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 270 B |
After Width: | Height: | Size: 381 B |