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.
@ -112,6 +112,10 @@ class DMSUploadField extends UploadField {
|
|||||||
// Attach the file to the related record.
|
// Attach the file to the related record.
|
||||||
$document = $this->attachFile($file);
|
$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.
|
// Collect all output data.
|
||||||
$return = array_merge($return, array(
|
$return = array_merge($return, array(
|
||||||
'id' => $document->ID,
|
'id' => $document->ID,
|
||||||
|
BIN
images/app_icons/audio_32.gif
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
images/app_icons/doc_32.gif
Normal file
After Width: | Height: | Size: 259 B |
BIN
images/app_icons/generic_32.gif
Normal file
After Width: | Height: | Size: 1.0 KiB |
BIN
images/app_icons/image_32.gif
Normal file
After Width: | Height: | Size: 390 B |
BIN
images/app_icons/mov_32.gif
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
images/app_icons/pdf_32.gif
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
images/app_icons/xls_32.gif
Normal file
After Width: | Height: | Size: 270 B |
BIN
images/app_icons/zip_32.gif
Normal file
After Width: | Height: | Size: 381 B |