
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
package froala.editor.file;
import egovframework.com.cmm.service.EgovProperties;
/**
* File Options used for uploading.
*
* @author florin@froala.com
*/
public class FileOptions {
// Download Url
public String downloadUrl;
public String getDownloadUrl() {
return downloadUrl;
}
public void setDownloadUrl(String downloadUrl) {
this.downloadUrl = downloadUrl;
}
public static final String downloadDefault = "/download.do?fileId=";
/**
* Default Froala Editor tag name that points to the file.
*/
public static final String fieldnameDefault = "file";
/**
* Tag name that points to the file.
*/
private String fieldname;
/**
* Get tag name that points to the file.
*/
public String getFieldname() {
return fieldname;
}
/**
* Set tag name that points to the file.
*/
public void setFieldname(String fieldname) {
this.fieldname = fieldname;
}
/**
* File validation.
*/
private FileValidation validation;
/**
* Get file validation.
*/
public FileValidation getValidation() {
return validation;
}
/**
* Set file validation.
*/
public void setValidation(FileValidation validation) {
this.validation = validation;
}
/**
* Init default file upload settings.
*/
protected void initDefault() {
setValidation(new FileValidation());
}
/**
* Constructor. Uses default options: - fieldname "file" - validation
* default FileValidation. To change them, use getters and setters.
*/
public FileOptions() {
// Set default fieldname.
setFieldname(fieldnameDefault);
// Set default filetype;
setDownloadUrl(downloadDefault);
// Init default settings.
initDefault();
}
}