public class MTAjaxFileUpload
extends com.webobjects.appserver.WOComponent
Name | Description |
---|---|
cancelText | the text to display for the cancel link |
cancelingText | the text to display when the progress is being canceled |
startingText | the text to display when the progress is starting |
startedFunction | the javascript function to execute when the progress is started |
canceledFunction | the javascript function to execute when the upload is canceled |
succeededFunction | the javascript function to execute when the upload succeeds |
failedFunction | the javascript function to execute when the upload fails |
finishedFunction | the javascript function to execute when the upload finishes (succeeded, failed, or canceled) |
finishedAction | the action to fire when the upload finishes (cancel, failed, or succeeded) |
canceledAction | the action to fire when the upload is canceled |
succeededAction | the action to fire when the upload succeeded |
failedAction | the action to fire when the upload fails |
data | the NSData that will be bound with the contents of the upload |
inputStream | will be bound to an input stream on the contents of the upload |
outputStream | the output stream to write the contents of the upload to |
streamToFilePath | the path to write the upload to, can be a directory |
finalFilePath | the final file path of the upload (when streamToFilePath is set or keepTempFile = true) |
filePath | the name of the uploaded file |
allowCancel | if true, the cancel link is visible |
progressBarBeforeStart | if true, the progress bar is visible before the upload is started |
progressBarAfterDone | if true, the progress bar is visible after the upload is done |
refreshTime | the number of milliseconds to wait between refreshes |
keepTempFile | if true, don't delete the temp file that AjaxFileUpload creates |
uploadLabel | the label to display on the Upload button ("Upload" by default) |
uploadFunctionName | the upload button will instead be a function with the given name |
progressOfText | the text to display for the word "of" in the "[size] of [totalsize]" string during upload |
mimeType | set from the content-type of the upload header if available |
class | the class attribute of the file input |
style | the style attribute of the file input |
id | the id attribute of the file input |
onFileSelected | optional JS code that is called when the file selection changes. To auto-start the upload when a file is selected, set uploadFunctionName to e.g. "startUpload" and onFileSelected to "startUpload()" |
uploadProgress | access to the underlying AjaxUploadProgress object |
com.webobjects.appserver.WOComponent._EventLoggingEnabler, com.webobjects.appserver.WOComponent.Event
com.webobjects.foundation.NSKeyValueCodingAdditions.DefaultImplementation, com.webobjects.foundation.NSKeyValueCodingAdditions.Utility
com.webobjects.foundation.NSKeyValueCoding._BooleanFieldBinding, com.webobjects.foundation.NSKeyValueCoding._BooleanMethodBinding, com.webobjects.foundation.NSKeyValueCoding._FieldBinding, com.webobjects.foundation.NSKeyValueCoding._ForwardingBinding, com.webobjects.foundation.NSKeyValueCoding._KeyBinding, com.webobjects.foundation.NSKeyValueCoding._KeyBindingCreation, com.webobjects.foundation.NSKeyValueCoding._MethodBinding, com.webobjects.foundation.NSKeyValueCoding._NumberFieldBinding, com.webobjects.foundation.NSKeyValueCoding._NumberMethodBinding, com.webobjects.foundation.NSKeyValueCoding._ReflectionKeyBindingCreation, com.webobjects.foundation.NSKeyValueCoding.ErrorHandling, com.webobjects.foundation.NSKeyValueCoding.MapImplementation, com.webobjects.foundation.NSKeyValueCoding.Null<T>, com.webobjects.foundation.NSKeyValueCoding.UnknownKeyException, com.webobjects.foundation.NSKeyValueCoding.ValueAccessor
com.webobjects.foundation.NSValidation._MethodBinding, com.webobjects.foundation.NSValidation._ValidationBinding, com.webobjects.foundation.NSValidation.DefaultImplementation, com.webobjects.foundation.NSValidation.Utility, com.webobjects.foundation.NSValidation.ValidationException
Modifier and Type | Field and Description |
---|---|
protected AjaxUploadProgress |
_progress |
protected boolean |
_triggerUploadStart |
protected boolean |
_uploadStarted |
_Extension, _IsEventLoggingEnabled, _keyAssociations
Constructor and Description |
---|
MTAjaxFileUpload(com.webobjects.appserver.WOContext context) |
Modifier and Type | Method and Description |
---|---|
String |
bytesReadSize() |
String |
cancelingText() |
String |
cancelText() |
String |
id() |
boolean |
isUploadStarted() |
boolean |
progressBarAfterDone() |
boolean |
progressBarBeforeStart() |
String |
progressBarID() |
String |
requestHandlerKey() |
void |
setRequestHandlerKey(String requestHandlerKey) |
void |
setUploadProgress(AjaxUploadProgress progress) |
String |
srcUrl() |
String |
startingText() |
com.webobjects.appserver.WOActionResults |
startUpload() |
String |
startUploadFunctionCall() |
String |
startUploadName() |
String |
streamLengthSize() |
boolean |
synchronizesVariablesWithBindings() |
boolean |
triggerStartUpload() |
com.webobjects.appserver.WOActionResults |
uploadCanceled() |
com.webobjects.appserver.WOActionResults |
uploadFailed() |
void |
uploadFinished() |
String |
uploadFormID() |
String |
uploadFrameName() |
String |
uploadLabel() |
AjaxUploadProgress |
uploadProgress() |
com.webobjects.appserver.WOActionResults |
uploadSucceeded() |
String |
uploadUrl() |
__valueForBinding, _associationWithName, _awakeInContext, _childTemplate, _cleanUpStatelessComponent, _componentDefinition, _componentUnroll, _isPage, _setContext, _setIsPage, _setParent, _setSubcomponent, _sleepInContext, _subcomponentForElementWithID, _templateNameForClass, _unroll, appendToResponse, application, awake, baseURL, bindingKeys, canAccessFieldsDirectly, canGetValueForBinding, canSetValueForBinding, clone, context, debugString, descriptionForResponse, ensureAwakeInContext, frameworkName, generateResponse, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hasBinding, hasSession, invokeAction, isCachingEnabled, isEventLoggingEnabled, isStateless, logString, name, pageWithName, parent, path, pathURL, performParentAction, pullValuesFromParent, pushValuesToParent, reset, session, set_componentUnroll, set_unroll, setCachingEnabled, setValueForBinding, setVariableValueForName, sleep, takeValueForKey, takeValueForKeyPath, takeValuesFromRequest, template, templateWithHTMLString, templateWithHTMLString, templateWithHTMLString, templateWithName, toString, unableToSetNullForKey, validateTakeValueForKeyPath, validateValueForKey, validationFailedWithException, valueForBinding, valueForBooleanBinding, valueForIntegerBinding, valueForKey, valueForKeyPath, valueForNSArrayBindings, valueForNSDictionaryBindings, valueForNumberBinding, valueForStringBinding, variableValueForName, variableWithName
protected boolean _uploadStarted
protected AjaxUploadProgress _progress
protected boolean _triggerUploadStart
public MTAjaxFileUpload(com.webobjects.appserver.WOContext context)
public void setRequestHandlerKey(String requestHandlerKey)
public String requestHandlerKey()
public boolean synchronizesVariablesWithBindings()
synchronizesVariablesWithBindings
in class com.webobjects.appserver.WOComponent
public String uploadLabel()
public boolean progressBarBeforeStart()
public boolean progressBarAfterDone()
public void setUploadProgress(AjaxUploadProgress progress)
public AjaxUploadProgress uploadProgress()
public String id()
public String uploadUrl()
public String bytesReadSize()
public String streamLengthSize()
public String uploadFrameName()
public String startUploadName()
public String startUploadFunctionCall()
public boolean triggerStartUpload()
public String uploadFormID()
public String progressBarID()
public String startingText()
public String cancelText()
public String cancelingText()
public com.webobjects.appserver.WOActionResults startUpload()
public boolean isUploadStarted()
public void uploadFinished()
public com.webobjects.appserver.WOActionResults uploadCanceled()
public com.webobjects.appserver.WOActionResults uploadSucceeded()
public com.webobjects.appserver.WOActionResults uploadFailed()
public String srcUrl()
Copyright © 2002 – 2020 Project Wonder.