Can't Repro
Status Update
Comments
ad...@gmail.com <ad...@gmail.com> #2
That should have said: below the preview is a "Download" link
sc...@google.com <sc...@google.com>
sl...@google.com <sl...@google.com> #3
I tried uploading some big blobs but I could not repeat this. If you still think it's an issue can you give me an example of what you're uploading that reproduces the behavior? Thanks.
ad...@gmail.com <ad...@gmail.com> #4
Attached is a screenshot of the blob view showing a 26MB CSV file, which is apparently too big for preview, and no download link is shown.
I don't know what the size limit is before it becomes "too large for preview", but I've got loads of >500MB files and none of them are downloadable.
I don't know what the size limit is before it becomes "too large for preview", but I've got loads of >500MB files and none of them are downloadable.
ad...@gmail.com <ad...@gmail.com> #5
Google, please re-open this.
sl...@google.com <sl...@google.com> #6
This is pretty much by design.
If you want something, you can roll your own download handler and protect it with the correct settings in the app.yaml file so that only admins can access the URL.
If you want something, you can roll your own download handler and protect it with the correct settings in the app.yaml file so that only admins can access the URL.
ad...@gmail.com <ad...@gmail.com> #7
I really doubt that this is by design.
This is clearly just a very minor bug caused by the download link being accidentally placed inside inside the `if` statement which removes the preview if the file is too big.
The template is going to be something like this...
{% if file.size<= MAX_FILE_SIZE_FOR_PREVIEW %}
{% include "preview_template.html" %}
<a href="//blobstore/download?app_id={{app_id}}&key={{file.key}}">Download</a>
{% endif %}
You just need to move the link tag outside of the `if` statement!
This is clearly just a very minor bug caused by the download link being accidentally placed inside inside the `if` statement which removes the preview if the file is too big.
The template is going to be something like this...
{% if file.size<= MAX_FILE_SIZE_FOR_PREVIEW %}
{% include "preview_template.html" %}
<a href="//blobstore/download?app_id={{app_id}}&key={{file.key}}">Download</a>
{% endif %}
You just need to move the link tag outside of the `if` statement!
ra...@firespotter.com <ra...@firespotter.com> #8
Even with a handler I'm unable to send a blob back that is larger than 32mb. Isn't send_blob supposed to handle dowloading large files?
sl...@google.com <sl...@google.com> #9
yes send_blob can send blobs of unlimited size.
ra...@firespotter.com <ra...@firespotter.com> #10
Our mp3 handler is failing though for mp3's larger than 32mb. Also strange is that the appengine logs claim the http response is 200 but the browser says there is a an ISE 500. Tried multiple browsers and blobs.
class Mp3Handler(blobstore_handlers.BlobstoreDownloadHandler):
def get(self, mp3_key):
key = urllib.unquote_plus(mp3_key)
self.send_blob(key)
class Mp3Handler(blobstore_handlers.BlobstoreDownloadHandler):
def get(self, mp3_key):
key = urllib.unquote_plus(mp3_key)
self.send_blob(key)
sl...@google.com <sl...@google.com> #11
this uses send_blob & html audio/video tags to play large media
http://audio-test.appspot.com/
The streaming happens outside of your app which is probably why you see a 200 in the logs even when the stream fails to play.
The streaming happens outside of your app which is probably why you see a 200 in the logs even when the stream fails to play.
ws...@gmail.com <ws...@gmail.com> #12
We solved the issue. Turns out pagespeed kills blob requests over 32mb. You need to blacklist these urls in app.yaml.
FYI your example doesn't load any files larger than 32mb
FYI your example doesn't load any files larger than 32mb
ad...@gmail.com <ad...@gmail.com> #13
Lots of off topic comments on here, but the original issue still remains.
Google, any chance of getting this fixed?
Google, any chance of getting this fixed?
sl...@google.com <sl...@google.com> #14
Fix what exactly?
Blobs > 32 mb can be sent correctly using send_blob.
The inability to download large blobs via the admin console is by design, as per comment 6.
Blobs > 32 mb can be sent correctly using send_blob.
The inability to download large blobs via the admin console is by design, as per comment 6.
ad...@gmail.com <ad...@gmail.com> #15
What's the rationale behind that "design"?
mo...@gmail.com <mo...@gmail.com> #16
[Comment deleted]
mo...@gmail.com <mo...@gmail.com> #17
Dynamic responses are limited to 32MB. If a script handler generates a response larger than this limit, the server sends back an empty response with a 500 Internal Server Error status code. This limitation does not apply to responses that serve data from the Blobstore or Google Cloud Storage.
From "https://developers.google.com/appengine/docs/java/runtime#Responses "
But i consider this part "This limitation does not apply to responses that serve data from the Blobstore or Google Cloud Storage."
I had this error when i'm using Blobstore.
From "
But i consider this part "This limitation does not apply to responses that serve data from the Blobstore or Google Cloud Storage."
I had this error when i'm using Blobstore.
ad...@gmail.com <ad...@gmail.com> #18
Bump.
pd...@smarttech.com <pd...@smarttech.com> #19
bump
Description
However, for larger blobs instead of showing the preview is just says "Blob too large for preview.", which is fair enough. But there's no "Download" link!
If it's too large to show the preview then the only way to see it is to download it, but there's no link to download it :-(