Atitit .. File Upload Component selection and best practices (2) ---- resumable upload

Source: Internet
Author: User
Tags ftp protocol

Atitit .. File Upload Component selection and best practices (2) ---- resumable upload

1. Principle of resumable data transfer 1

2. How can I determine whether a plug-in/control supports resumable data transfer ?? 1

3. selection results of common components: Ma 1

4. Custom Indicator 2 to be implemented by the resumable data transfer control

5. Selection of resumable data transfer protocol FTP/HTTP/RMI... 2

6. Can resumable upload be implemented through ActiveX, plugin, applet, and Flash ?? 3

7. Missing required permissions manifest attrribute in main jar 3

8. Reference: 4

 

 

1. Principle of resumable Data Transfer

Take a closer look and you will find that there is an additional row range: bytes = 2000070-

The range header is a standard http1.1 protocol header...

You can also use the custom header... the protocol can also use RMI, not necessarily through the HTTP protocol ..

 

2. How can I determine whether a plug-in/control supports resumable data transfer ??

For resumable data transfer, you need to support the server encoding... You need to record the data at both ends...

Server-side encoding does not seem to be common... if a plug-in has a client code, it means that resumable data transfer is not supported...

 

Author: old wow's paw attilax iron, email: [email protected]

Reprinted please indicate Source: http://blog.csdn.net/attilax

 

3. Common component selection results: Horse

Uploadify JS + flash, multi-File Upload, resumable upload not allowed ..

Most of the controls supporting resumable data transfer are charged...

 

Java Applet mupload

Jeig personal prodeuct... cant resumt... and biggest file 1.5g

 

==========

Jfileupload is a client-side Java? Component (applet or WebStart) that allows to upload files and folders to a web or FTP server. this component cocould be integrated into any application. server-side technology cocould be JSP/servlet, PHP, CGI/perl, Ruby, ColdFusion or Microsoft ASP. front-end provides an upload progress bar, a Cancel button and drag & drop support. jfileupload supports very large uploads over 2 GB and cocould resume broken uploads. it is customizable (colors, size and multilanguage ). see installation instructions below.

This supports resume... jeig haosyeo sh com product ..

 

4. Customize the indicators to be implemented by the resumable data transfer control

Jupload also has a large number of configuration parameters

Session management

International language: more than 20 languages

FTP and HTTP (post) Functions

Block upload: specifies the maximum upload size of the server.

Image Management, which allows scaling, rotating, and format conversion

Allow control of the specified file extension

MD5 checksum Calculation

Upload directory structure

Default Mode chart:

 

 

5. Selection of resumable data transfer protocol FTP/HTTP/RMI ..

 

 

 

 

 

. For web-based file uploads, FTP and HTTP protocols can be used. Even if FTP is used, the transmission is stable, but the security seems to be okay .., in addition, the FTP server reads the user database to obtain permissions, which is not convenient for users.

 

 

Only HTTP is left. There are three methods in http: Put, WebDAV, and rfc1867. The first two methods are not suitable for uploading large files, currently, we use form-based file uploads Based on rfc1867 standard HTML.

 

 

Ii. Two methods for processing file uploads using rfc1867:
1. Get the uploaded data at one time and analyze and process it.

 

But there is a big problem with HTTP. Let's go through ten steps. We need to encode the two sides to achieve a huge workload ......

 

Lin Ba, or, I decided to use the FTP protocol. The client code in the middle is OK...


 

6. Can resumable upload be implemented through ActiveX, plugin, applet, and Flash ??

ActiveX can be written by yourself
Flash Player ActiveX is written by Adobe.

If you want to have unlimited functions, of course, it is better to develop ActiveX by yourself. However, your own function package is not supported by Adobe, so it is difficult to make the best of both worlds. Use it in combination.

 

Unless air is used, files and sockets can be operated by the user. SWF running in the browser alone cannot be implemented theoretically.

...


I think there are too many restrictions on Flash Player ActiveX. Many ActiveX tools have higher permissions than Flash Player. For example, the upload control of the Yahoo album allows you to preview the image to be uploaded. Flash Player cannot. Currently, the Upload components that support resumable data transfer on the Internet are basically based on ActiveX (for example, this). How can this problem be solved?

 

Cross-platform sub-systems include SWF and Applet lan... Lin or applet...

 

7. Missing required permissions manifest attrribute in main jar

Cause... ma signature ....

Solution: Control Panal >>> Java >>> security-level adjustment at a low level go OK lan... it is best to add a signature or adjust the client Java. policy file... authorize all...

 

 

 

Missing required permissions manifest attrribute in main jar

 

 

 

 

 

8. Reference:

Paip.silverlightmultifile resumable upload .txt

Jquery upload plug-in uploadify-oec2003-blog garden _ files

Jquery upload plug-in uploadify-oec2003-blog

For the resumable transfer of FTP-based web edition, Contact Daniel-csdn Forum-csdn. Net-China's largest IT technology community.

\ Use a Java real-time break to resume. html

Java breakpoint resume server code-Pale life-blog. htm

Implementation principle and component selection with progress bar and Best Practices summary O7

Atitit. Implementation principle of file upload with progress bar and component selection and Best Practices summary O7-attilax column-blog channel-csdn.net.htm

Atitit .. File Upload Component selection and best practices (2) ---- resumable upload

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.