Skip to content

Commit c72762d

Browse files
committed
fix: BROS-65: Persistent storage use attachment instead of inline and can't load PDF. Simple fix (#7685)
1 parent 250ff0d commit c72762d

File tree

1 file changed

+1
-1
lines changed
  • label_studio/data_import

1 file changed

+1
-1
lines changed

label_studio/data_import/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -744,5 +744,5 @@ def get(self, request, *args, **kwargs):
744744
redirect = '/file_download/' + protocol + '/' + url.replace(protocol + '://', '')
745745

746746
response['X-Accel-Redirect'] = redirect
747-
response['Content-Disposition'] = 'attachment; filename="{}"'.format(filepath)
747+
response['Content-Disposition'] = 'inline; filename="{}"'.format(filepath)
748748
return response

0 commit comments

Comments
 (0)