File processing method and device
A file processing and file technology, applied in the computer field, can solve the problem that the same specified file resource cannot execute concurrent operations at the same time
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0031] figure 2 It is a flow chart of a file processing method provided by Embodiment 1. In Embodiment 1, after the upload is successful, the file of the next version is replaced with the file of the current version and provided to the user as a specified file resource, and then the file of the next version is deleted. The current version file, specifically includes the following steps:
[0032] S201. Receive an uploaded next version file for updating the current version file, and before the upload is successful, the current version file is provided to the user as a designated file resource for processing.
[0033] During specific implementation, an ID can be set for the file. The above-mentioned current version file ID is different from the next version file ID; when uploading the next version file, the current version file will not be overwritten, and the user can update the current version file. Downloads the current version of a file that is a resource for the specified ...
Embodiment 2
[0038] image 3 It is a flow chart of a file processing method provided in Embodiment 2. In Embodiment 2, after the upload is successful, the current version file is deleted first, and then the next version file is replaced with the current version file and provided as a specified file resource Handle it to the user, specifically including the following steps:
[0039] S301. Receive and upload a next version file for updating the current version file, and before the upload is successful, the above current version file is provided to the user as a designated file resource for processing.
[0040] S302. After uploading successfully, record the next version file as an updated version file of the current version file.
[0041] During specific implementation, the corresponding relationship between the next version file ID and the current version ID may be recorded.
[0042] S303. Determine that the above-mentioned current version file is not currently being downloaded; if it is det...
Embodiment 3
[0046] Figure 4 A flowchart of a file processing method provided in Embodiment 3. After step S304 in Embodiment 2 and before step S305, if a download request for downloading the current version file as a specified file resource is received, the following steps can be performed for processing :
[0047] S401. Receive a download request for downloading a current version file as a specified file resource.
[0048] S402. Determine that the file currently serving as the specified file resource is the current version file.
[0049] S403. Determine the updated version file of the current version file, and proceed to step S405. If the updated version file of the current version file cannot be determined, proceed to step S404.
[0050] During specific implementation, the current version file ID can be obtained, and according to step S302 in the second embodiment, it is searched whether there is a record of the next version file corresponding to the current version file as an updated...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 