/*
 * Copyright 2014 Red Hat, Inc.
 *
 *  All rights reserved. This program and the accompanying materials
 *  are made available under the terms of the Eclipse Public License v1.0
 *  and Apache License v2.0 which accompanies this distribution.
 *
 *  The Eclipse Public License is available at
 *  http://www.eclipse.org/legal/epl-v10.html
 *
 *  The Apache License v2.0 is available at
 *  http://www.opensource.org/licenses/apache2.0.php
 *
 *  You may elect to redistribute this code under either of these licenses.
 */

package io.vertx.ext.web;

import io.vertx.codegen.annotations.VertxGen;

Represents a file-upload from an HTTP multipart form submission.

Author:Tim Fox
/** * Represents a file-upload from an HTTP multipart form submission. * <p> * * @author <a href="http://tfox.org">Tim Fox</a> */
@VertxGen public interface FileUpload {
Returns:the name of the upload as provided in the form submission
/** * @return the name of the upload as provided in the form submission */
String name();
Returns:the actual temporary file name on the server where the file was uploaded to.
/** * @return the actual temporary file name on the server where the file was uploaded to. */
String uploadedFileName();
Returns:the file name of the upload as provided in the form submission
/** * @return the file name of the upload as provided in the form submission */
String fileName();
Returns:the size of the upload, in bytes
/** * @return the size of the upload, in bytes */
long size();
Returns:the content type (MIME type) of the upload
/** * @return the content type (MIME type) of the upload */
String contentType();
Returns:the content transfer encoding of the upload - this describes how the upload was encoded in the form submission.
/** * @return the content transfer encoding of the upload - this describes how the upload was encoded in the form submission. */
String contentTransferEncoding();
Returns:the charset of the upload
/** * @return the charset of the upload */
String charSet(); }