Patent ID: 8769041

Claim:
A document generation apparatus capable of generating a document and uploading the generated document to an external service via a network, the document generation apparatus comprising: a processor coupled to a memory; a document generation unit configured to generate a document according to a document generation request from a client apparatus; an upload unit configured to upload the document to the external service; a transmission unit configured to transmit to the client apparatus; a determination unit configured to determine whether the document can be uploaded to the external service, wherein, when the determination unit determines that the document can be uploaded to the external service, the upload unit uploads the document from the document generation apparatus to the external service, and wherein, when the determination unit determines that the document cannot be uploaded to the external service, the transmission unit transmits, to the client apparatus, the document and information for uploading the document from the client apparatus to the external service to cause the client apparatus to upload the document to the external service, wherein the determination unit, the upload unit, and the transmission unit are stored in at least one memory; a storage unit configured to store a maximum number of simultaneous uploads to the external service that can be performed by the upload unit; and an acquisition unit configured to acquire, in response to reception of an instruction from the client apparatus to upload the document to the external service, the maximum number of simultaneous uploads stored in the storage unit and a number of uploads to the external service that are currently being performed, wherein the determination unit is configured to compare the number of uploads to the external service that are currently being performed and the maximum number of simultaneous uploads, wherein the determination unit determines that the document can be uploaded to the external service when the number of uploads to the external service that are currently being performed is smaller than the maximum number of simultaneous uploads, and wherein the determination unit determines that the document cannot be uploaded to the external service when the number of uploads to the external service that are currently being performed is not smaller than the maximum number of simultaneous uploads.