I'm unable to upload HTML type Document in Omnidocs. It's showing invalid type error - od

whenever I'm uploading html files in omnidocs its showing invalid type error. What changes have to made to enable html type?
Please tell the files in which I have to make changes and where?

Related

Is there a way to upload files without a file extension suffix to Flask-Dropzone?

I'm trying to use Flask-Dropzone as part of a web-app to upload files for processing. These files typically don't have a file extension due to a quirk of the export process that generates these files.
I've consulted both the Flask-Dropzone docs and the Dropzone.js docs and both seem to imply that if DROPZONE_ALLOWED_FILE_CUSTOM = False then every upload of all file types should be accepted. However, when navigating the file upload window, the filter defaults to "All Supported Types" and seems to only accept images. I can toggle this to "All Files" but when trying to upload anything else the dropzone gives the default error message about the file not being allowed.
I am able to set custom allowed file types such as .pdf's, .xlsx, etc. However this isn't useful as the files in question doesn't have a declared file type extension.

how to limit uploaded file types in nuxeo platform

My question is about the nuxeo platform, i want to limit the uploded file types to jpg and png images only. I googled and searched the documentation and found nothing. is there a way to do this?
Thanks
If you're using WebUI, the upload providers support an "accept" attribute, where the value is a comma-separated list of accepted mime types.
https://doc.nuxeo.com/nxdoc/web-ui-upload-providers/
Here's an example:
<nuxeo-dropzone role="widget"
label="PDF file"
name="content"
accept="application/pdf"
document="[[document]]"></nuxeo-dropzone>
Note, the Dropzone component isn't very good at reporting errors back to the user. It fails silently if you upload a type that's not accepted.

Post DocuSign Envelope with base64 string failed for non-pdf file

I'm trying to post an envelope but it keeps failing for non-pdf file with the following failure:
<errorCode>UNABLE_TO_LOAD_DOCUMENT</errorCode>
<message>Unable to load the document. Unable to load Document(1;Parking Application). Error: the document is corrupt, rebuilding failed </message>
I know that I can trying sending the document as multi-part request but I'm wondering what is the issue in this request:
https://drive.google.com/file/d/0B4IcppTb9svVSFhXYkdFa0gtbms/view
it contains a word document.
It doesn't seem to be an issue with the base64 encoded string because the string can be decoded back to the file just fine e.g. using http://www.motobit.com/util/base64-decoder-encoder.asp
You forgot to include the
<fileExtension>docx</fileExtension>
node in your XML adjacent to the documentBase64 node.
(The snippet above assumes you're sending a docx file. Change it to whatever the filetype is.)
In other words, if your document is not a pdf, you need to tell the platform what the format of your documents are. It assumes pdf.

Liferay Service Builder SaxException

I get an error when I build my service:
org.apache.axis.ConfigurationException: org.xml.sax.SAXException: Fatal Error: URI=null Line=1258: The content of elements must consist of well-formed character data or markup.
org.xml.sax.SAXException: Fatal Error: URI=null Line=1258: The content of elements must consist of well-formed character data or markup.
at org.apache.axis.utils.XMLUtils$ParserErrorHandler.fatalError(XMLUtils.java:723)
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(Unknown Source)
I need some help. Thank you in advance
Quoting your error message:
The content of elements must consist of well-formed character data or
markup
The best assumption is that you have invalid xml. A decent XML editor should be able to point you to the root cause by flagging the erroneous place in your file. If it really is in line 1258 (as the message says), it might be too large to ask to post the file here.
Liferay's ServiceBuilder comes with a DTD which is typically referenced. This will make sure that the XML editor has enough information to validate the file. Make sure the DTD declaration matches the Liferay version that you compile to (that the SDK belongs to)

Excel Sheet created from ABAP using XML method throws error

I'm trying to create an excel sheet and send it as an inbox/email attachment from an SAP background process using the xml method. I'm following the code/method described here. I'm able to receive the inbox with an excel attachment but upon trying to open the attachment I get the following error message:
Problems came up in the following areas during load:
Workbook Setting
This file cannot be opened because of errors. Errors are listed in:
C:\Users\user\AppData\Local\Microsoft\Windows\Temporary Internet files\Content.MSO\36F0E91E.log.
However, no log file actually exists at that location.
EDIT. I've found I can view the error log file by opening the path in a web browser. The error message given reads:
XML PARSE ERROR: Null or missing attribute value
Error occurs at or below this element stack:
<ss:Workbook>
Late reply, but have you considered the excellent library abap2xlsx that can be found on SDN code exchange? I believe that example 3 (ZDEMO_EXCEL3) in that package includes sending to email recipient.

Resources