0
votes

The description of Files.export says "Exports a Google Doc to the requested MIME type and returns the exported content. Please note that the exported content is limited to 10MB."

https://developers.google.com/drive/api/v3/reference/files/export

When running Files.get, the metadata contains a list of "exportLinks" as a link to export the file in multiple formats.

So my question is are these exportLinks different than doing File.export? Do the exportLinks urls have a 10MB limit?

1

1 Answers

1
votes

exportLinks does not have a 10MB limit. You'll notice this if you try to try to export a larger-than-10MB file through one of the export links. It will be exported successfully, while using Files: export will result in a 403 error with the message: "This file is too large to be exported.".

Apart from this limitation, I don't think there is a difference between a file exported via Files: export and one exported through one of the exportLinks, as long as the same MIME type is specified.

Reference: