CompuMasterGmbH / cammIntegrationPortal

camm Integration Portal (based on camm Web-Manager)
MIT License
2 stars 1 forks source link

Smarteditor: Upload doesn't work + present files not visible #36

Closed jochenwezel closed 7 years ago

jochenwezel commented 7 years ago

In following screenshot, there are several issues visible: image

Editor tag is configured as follows:

<cammWebEdit:SmartCommonMarkEditor marketlookupmode="0" 
    Images="images" Docs="docs"
    ImagesAllowedFileExtensions="*.jpg,*.gif"
    DocumentsAllowedFileExtensions="*.pdf,*.txt,*.doc,*.docx,*.rtf,*.xls,*.xlsx,*.ppt,*.pptx"
    ...
  1. loremipsum.txt can't be uploaded, error message appears (alternative of ImagesAllowedFileExtensions="jpg,gif" DocumentsAllowedFileExtensions="pdf,txt,doc,docx,rtf,xls,xlsx,ppt,pptx" doesn't work, too)
  2. error message shows quotation marks in between
  3. documents list is empty, but 2 files .pdf are in the docs directory
jochenwezel commented 7 years ago

To point 1: correct form of extensions must be without * (star) but with . (dot) character, e.g. ImagesAllowedFileExtensions=".jpg,.gif"

Recommendation 1: send warning to technician in case of found ".something1,.something2" or "something1,something2" with recommendation to change into ".something1,.something2"

Recommendation 2: enhanced samples pages to show a valid attribute usage (done separately by @jochenwezel)

Status update to this issue:

cmalbertschw commented 7 years ago
  1. error message shows quotation marks in between

Fixed by 0816be16876c557eab0933f91bc102cb024fc55c

cmalbertschw commented 7 years ago

Recommendation 1: send warning to technician in case of found ".something1,.something2" or "something1,something2" with recommendation to change into ".something1,.something2"

It has been decided to support the old formats: ".something1,.something2", "something1,something2" and mixed will be converted to ".something1,.something2" 3ccd005098d6e3dc8da6604548643b0fb057de9a