exportSizeLimitExceeded

exportSizeLimitExceeded

Jason Touw -
回帖数:3

We are running Moodle 3.4 with the TurnItIn Two plugin for assignments.  

Students are making google doc submissions using the file picker.  The file submits normally.

When we attempt to download or view the file, this error is received:  

{
 "error": {
  "errors": [
   {
    "domain": "global",
    "reason": "exportSizeLimitExceeded",
    "message": "This file is too large to be exported."
   }
  ],
  "code": 403,
  "message": "This file is too large to be exported."
 }
}


We have the file size to the maximum allowable limit and there are no images in the file.  The actual file size is only 40KB.

The error message above shows in the PDF preview and in the downloaded file.

Any thoughts?  Thank you!

回复Jason Touw

Re: exportSizeLimitExceeded

Ken Task -
Particularly helpful Moodlers的头像

Under thoughts ... two things could be at play ... TurnItIn (commercial) and of course Google.  Y'all have a Google Domain for Education still, right?

From what you've described think I'd begin trouble shooting this following the path ... start with what files students are uploading to Google.   There are limits ... see the link below.

https://docs.google.com/document/d/1E7sT_BMkFOXR4EsDMUUhOgeD6BrEjFzS8fHv8tNrfPU/edit

Not sure if there is a domain wide setting or if it's an individual account preference, but Google can be set to auto convert docs (like .docx, etc.) to true Google Docs.

IF that error is reported when opening a downloaded PDF file or is the downloaded after TurnitIn has messed with it?  Was the original submission converted to a PDF first?   See link above.

What happens to a student submitted doc when student shares the URL to the doc back to a teacher or you?  Can you download as PDF and does the PDF open in whatever local app you have to open PDF's?

What about your apache/web service error logs?   Any clues there?

Bottom line ... I don't know! :\ .... like I said .... 'under thoughts' ...

'spirit of sharing', Ken

回复Ken Task

Re: exportSizeLimitExceeded

Ken Task -
Particularly helpful Moodlers的头像

more thoughts ... and a how 2 on finding file student submitted????

In the DB for Moodle
table: mdl_files

Columns

contenthash
component mod_turnitintool
filearea submission or draft
filename

Query using DB for Moodle:

select contenthash,filename,filesize,mimetype from `mdl_files` where (`component` like "mod_turnitintool" and `filearea` like "submission")

returns looks like:

contenthash     filename     filesize     mimetype
5ff0e23e2e623b0105c5c94875c8a9d884537b34     1_1384778860_3872.docx     13874     application/vnd.openxmlformats-officedocument.wordprocessingml.document

Using the example above the actual file is in:

moodledata/filedir/5f/f0/ and called "5ff0e23e2e623b0105c5c94875c8a9d884537b34"

One could use anything you have on server to browse files and see if that file is a PDF (example above isn't but if it were the mimetype should be application/pdf)

and If you can open that file from your operating system.

That's assuming that TurnitIn has not altered the students submission file.

'spirit of sharing', Ken


回复Jason Touw

Re: exportSizeLimitExceeded

Carl Thelen -

We are occasionally getting the exact same problem.  The problem files are Google Docs with charts pasted in (I am not currently clear on which paste method).  This happens when students select the Google Doc from the file picker.  It is my understanding that Google converts them to RTF before handing them off to Turnitin.

Our site has max file size set to 500 MB (for professors asking for video), and that's the same setting as for the test course I'm using.  But, Turnitin says it has a 40MB limit.

Now, if I save the problem Google files as PDF they are are like 300K, but saved as RTF are like 322 MB - over 100 times as large.  So, this part is a problem on Google's end.  Interestingly, if I save as RTF (note: not Adobe PDF) and then upload to Turnitin, it works fine, despite the above comment about the 40MB limit.

It kinda looks to me like the plugin pays attention to the bogus 40MB limit when you're pulling from a Google repository, but not otherwise.  Also, there's a known bug in the bug tracker related to the Assignment activity that throws the exact same error.

https://tracker.moodle.org/browse/MDL-62785 

It is possible turnitin subclassed the Attendance module, and therefore inherited the same bug.

So, what I'm telling people is if they see the error message, save as PDF and upload the PDF.

Not a good outcome, but at least there's a workaround.  Plus, it only affects a small minority of uploads.

Cheers!