removeImage  (e) {
		var state = {
			localSource: null,
			origin: false
		};

		if (this.hasLocal()) {
			this.fileFieldNode().value = '';
		} else if (this.hasExisting()) {
			state.removeExisting = true;

			if (this.props.autoCleanup) {
				if (e.altKey) {
					state.action = 'reset';
				} else {
					state.action = 'delete';
				}
			} else {
				if (e.altKey) {
					state.action = 'delete';
				} else {
					state.action = 'reset';
				}
			}
		}

		this.setState(state);
	}
/**
	 * If we have a local file added then remove it and reset the file field.
	 */
If we have a local file added then remove it and reset the file field.
If we have a local file added then remove it and reset the file field .
removeImage  (e) {
		var state = {
			localSource: null,
			origin: false
		};
		if (this.hasLocal()) {
			this.fileFieldNode().value = '';
		} else if (this.hasExisting()) {
			state.removeExisting = true;
			if (this.props.autoCleanup) {
				if (e.altKey) {
					state.action = 'reset';
				} else {
					state.action = 'delete';
				}
			} else {
				if (e.altKey) {
					state.action = 'delete';
				} else {
					state.action = 'reset';
				}
			}
		}
		this.setState(state);
	}
removeImage ( e ) { var state = { localSource : null , origin : false } ; if ( this . hasLocal ( ) ) { this . fileFieldNode ( ) . value = '' ; } else if ( this . hasExisting ( ) ) { state . removeExisting = true ; if ( this . props . autoCleanup ) { if ( e . altKey ) { state . action = 'reset' ; } else { state . action = 'delete' ; } } else { if ( e . altKey ) { state . action = 'delete' ; } else { state . action = 'reset' ; } } } this . setState ( state ) ; }
If we have a local file added then remove it and reset the file field.
If we have a local file added then remove it and reset the file field .