Web File Upload Gating for Complete File Generation
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing file upload methods in web browsers, particularly using JavaScript, fail to ensure that a file is fully generated before uploading, leading to incomplete or non-existent files being uploaded due to the lack of detection of the upload completion.
Innovation Solution
An information processing system and method that includes a processor to start file generation in response to a user operation, set a file name in a predetermined tag upon completion, and monitor the upload process to ensure the file is fully generated before initiating the upload, using a communication monitoring unit to detect the end of the upload.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Ease of operation
If the file name is set in HTML before the file generation is ended, then the operability is improved by enabling one-stage operation, but the file may be uploaded in an unfinished state
Solution Approach 1:
The system monitors the file generation process and detects when the file name is actually assigned. This feedback mechanism ensures that the upload only proceeds when the file is ready, resolving the contradiction between enabling one-stage operation and preventing premature uploads.
Solution Approach 2:
The system prepares the upload functionality in advance by setting up the HTML structure and monitoring mechanisms, but delays the actual upload execution until the file generation is confirmed complete through detection of the file name assignment.
2Ease of operation
If the file upload is automatically started after setting the file name, then the user operation is simplified, but the system must accurately detect the end of file generation
Solution Approach 1:
The system uses feedback from the file generation process to detect when the file name has been assigned. This automated detection enables one-stage operation while ensuring the file is ready for upload, resolving the contradiction between operational simplicity and detection accuracy.
3Speed
If the user is allowed to operate the upload button during file generation, then the system responsiveness is maintained, but incomplete files may be uploaded
Solution Approach 1:
The system continuously monitors the file generation status and uses this feedback to control the upload button's operability. The button remains inactive during generation and becomes active only when completion is detected, resolving the contradiction between responsiveness and reliability.
Solution Approach 2:
The upload button's state dynamically changes from inactive to active based on the file generation progress. This dynamic control allows the system to maintain responsiveness by enabling uploads as soon as they are safe, while preventing premature uploads through conditional activation.
Data Source
Figure 1
Figure 2A
Figure 2B
AI summary
An information processing system includes: a processor configured to: start generation of a file in response to a user operation on a first button displayed based on a web page; and set a file name of the file in a predetermined tag in the web page to make the file be in a state of being uploadable, in a case where an end of the generation of the file is detected.