Web File Upload Timing for Complete File Generation
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
In file uploading processes using web browsers, especially on multifunctional machines, there is a risk of uploading incomplete or non-existent files when a file name is set before the file generation is completed, particularly in one-stage operations where the file is generated in response to a user operation on a button.
Innovation Solution
An information processing system that includes a processor configured to start file generation in response to a user operation and set the file name in a predetermined tag only after the generation is completed, using a communication monitoring unit to detect the end of the uploading process.
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 of the user is improved (one-stage operation), but the reliability of the file upload deteriorates (incomplete or non-existent files are uploaded)
Solution Approach 1:
The system performs preliminary preparation by setting up the HTML structure and file selection tag in advance, but delays the critical action of setting the file name until after file generation is complete. This allows the user interface to be ready for one-stage operation while ensuring the file name is only set when the file actually exists, thus maintaining reliability.
Solution Approach 2:
The system dynamically adjusts the timing of the file name setting operation based on the file generation status. Instead of a fixed sequence where file name is set before generation, the system makes the file name setting operation conditional and dynamic - it only executes after detecting that file generation has ended, thus adapting the process flow to ensure reliability while maintaining ease of operation.
2Reliability
If the file name is set after the file generation is ended, then the reliability of the file upload is improved (complete files are uploaded), but the operability of the user deteriorates (cannot achieve one-stage operation)
Solution Approach 1:
The system implements a feedback mechanism where the completion of file generation is detected and used as a trigger condition. The file name setting operation receives feedback about the file generation status and automatically executes only when the feedback indicates completion. This feedback loop ensures reliability by confirming file existence before setting the name, while maintaining the appearance of streamlined operation for the user.
Data Source
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.


