Skip to content

Commit

Permalink
presigned and setting
Browse files Browse the repository at this point in the history
  • Loading branch information
Hrishikesh Jadhav committed Jan 26, 2024
1 parent ee9df8f commit adac6d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fileoperations/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ def get_shared_file_url(self, request, *args, **kwargs):
self.queryset = Objects.objects.select_related("owner").filter(
owner__org=user_org
)
objs = get_object_or_404(self.queryset, id=kwargs.get("file"),shared_with__id=user)
objs = get_object_or_404(self.queryset, id=kwargs.get("file"))
signed_url = create_signed(objs.name, 60)
response = Response({"id": objs.id, "signed_url": signed_url})
else:
Expand Down

0 comments on commit adac6d7

Please sign in to comment.