public class UploadHelper extends Object
Helper class for upload.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_MIME
Default MIME type representing "application/octet-stream"
|
Constructor and Description |
---|
UploadHelper() |
Modifier and Type | Method and Description |
---|---|
static Object |
getDocumentFormatProperty(List fileList_p)
determines the document format and returns it as a property object value
|
static String |
getMimeFormatProperty(String filename)
Create a MIME parameter information, using following format:
|
public static final String DEFAULT_MIME
public static Object getDocumentFormatProperty(List fileList_p) throws Exception
fileList_p
- Exception
public static String getMimeFormatProperty(String filename)
<MIME-Type> + ";name=" + <filename>If filename does not has MIME information (investigating extension) a default MIME type is returned application/octet-stream, else the MIME type is resolved through
OwMimeTypes.getMimeTypeFromExtension(String)
.DEFAULT_MIME
is returned only.filename
- StringOwMimeTypes
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.