File upload modifications for client side applications
Abstract
Methods and systems are provided for a client computing device including a browser that renders a web page. Program code generates a mock upload event and a corresponding mock data transfer object for uploading data using the web page. The mock upload event and the corresponding mock data transfer object are propagated to an upload event listener of the web page and executed. Prior to generating the mock upload event and corresponding mock data transfer object, an embedded upload event listener may receive an upload event, read the upload event, drop the received upload event from an event handler pipeline, and call synchronously or asynchronously, code to perform logic on the received upload event for the generation of the mock upload event and a corresponding mock data transfer object.
Claims
exact text as granted — not AI-modified1 . (canceled)
2 . A system in a proxy server, the system comprising:
a processor; and a memory device that stores program code to be executed by the processor, the program code comprising a mocking event instruction generator that: determines instructions for generating a mock upload event to a service provider server from a client device, the instructions determined in response to an upload request query received from the client device, wherein the instructions are determined based on upload policies as applied to the upload request query from the client device; and transmits the instructions to the client device.
3 . The system of claim 2 , wherein said instructions for generating a mock upload event to a service provider server from a client device include instructions for generating a mock data transfer object for the mock upload event based on the upload policies as applied to the upload request query from the client device.
4 . The system of claim 2 , wherein the instructions determined for generating a mock upload event to a service provider server from a client device is based on information about one or more files, one or more directories, or one or more files and one or more directories that is indicated in the upload event query received from the client device.
5 . The system of claim 2 , wherein the instructions determined for generating a mock upload event to a service provider server from a client device are determined based on one or more files, one or more directories, or one or more files, and one or more directories included in the upload event query received from the client device.
6 . The system of claim 2 , wherein the upload policies indicate at least one of criteria for taking certain actions or how to treat certain files or directories for the generating of the mock upload event to the service provider server from the client device.
7 . The system of claim 2 , wherein the instructions include instructions for one or more of modifying file content, encrypting file content, renaming a file, or denying transmission of certain types of files or directories.
8 . The system of claim 2 , wherein the instructions for generating the mock upload event to the service provider server from the client device indicate to individually deny or allow upload of one or more of files, one or more directories, or one or more files of a directory.
9 . The system of claim 2 , wherein the upload request query is received at the proxy server from the client device after the client device receives a user or system generated upload event trigger and prior to the client device performing an upload event in response to the trigger.
10 . The system of claim 2 , wherein the transmission of instructions to the client device comprises the proxy server returning the instructions for the generation of the mock upload event to a mock event listener embedded in a document object model (DOM) at the client device for processing a file or directory prior to uploading the file or directory to the service provider server.
11 . A method in a proxy server, the method comprising:
determining instructions that generate a mock upload event to a service provider server from a client device, the instructions determined in response to an upload request query received from the client device, wherein said determining of the instructions is based on upload policies as applied to the upload request query from the client device; and transmitting the instructions to the client device.
12 . The method of claim 11 , wherein the instructions that generate a mock upload event to a service provider server from a client device include instructions for generating a mock data transfer object for the mock upload event based on the upload policies as applied to the upload request query from the client device.
13 . The method of claim 11 , wherein said determining instructions for generating a mock upload event to a service provider server from a client device is based on information about one or more files, one or more directories, or one or more files and one or more directories that is indicated in the upload event query received from the client device.
14 . The method of claim 11 , wherein said determining instructions for generating a mock upload event to a service provider server from a client device is based on one or more files, one or more directories, or one or more files and one or more directories included in the upload event query received from the client device.
15 . The method of claim 11 , wherein the upload policies indicate one or both of criteria for taking certain actions or how to treat certain files or directories for the generating of the mock upload event to the service provider server from the client device.
16 . The method of claim 11 , wherein the instructions include instructions for one or more of modifying file content, encrypting file content, renaming a file, or denying transmission of certain types of files or directories.
17 . The method of claim 11 , wherein the instructions for generating the mock upload event to the service provider server from the client device indicate to individually deny or allow upload of one or more of files, one or more directories, or one or more files of a directory.
18 . The method of claim 11 , wherein the upload request query is received at the proxy server from the client device after the client device receives a user or system generated upload event trigger and prior to the client device performing an upload event in response to the trigger.
19 . The method of claim 11 , wherein said transmitting the instructions to the client device comprises:
the proxy server returning the instructions for the generation of the mock upload event to a mock event listener embedded in a document object model (DOM) at the client device for processing a file or directory prior to uploading the file or directory to the service provider server.
20 . A physical hardware computer-readable medium having program code recorded thereon that when executed by at least one processor causes the at least one processor to perform a method, the method comprising:
determining instructions that generate a mock upload event to a service provider server from a client device, the instructions determined in response to an upload request query received from the client device, wherein said determining of the instructions is based on upload policies as applied to the upload request query from the client device; and transmitting the instructions to the client device.
21 . The physical hardware computer-readable medium of claim 20 , wherein said instructions that generate a mock upload event to a service provider server from a client device include instructions for generating a mock data transfer object for the mock upload event based on the upload policies as applied to the upload request query from the client device.Join the waitlist — get patent alerts
Track US2023418692A1 — get alerts on status changes and closely related new filings.
We store only your email — no account needed. See our privacy policy.