Skip to content

docs: file detection using first few bytes disabled on S3 direct upload#11035

Merged
ofahimIQSS merged 5 commits intodevelopfrom
s3-file-detect
Nov 19, 2024
Merged

docs: file detection using first few bytes disabled on S3 direct upload#11035
ofahimIQSS merged 5 commits intodevelopfrom
s3-file-detect

Conversation

@pdurbin
Copy link
Member

@pdurbin pdurbin commented Nov 19, 2024

@pdurbin pdurbin added the Size: 0.5 A percentage of a sprint. 0.35 hours label Nov 19, 2024
@pdurbin pdurbin requested a review from landreev November 19, 2024 13:54
Copy link
Member

@qqmyers qqmyers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Currently the following methods are used to detect file types:

- The file type detected by the browser (or sent via API).
- Custom code that reads the first few bytes. As explained at :ref:`s3-direct-upload-features-disabled`, this code is disabled during direct upload to S3. However, this code is active when the "redetect" API is used.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree it's a good idea to spell this out in the guide; especially if it has been a source of confusion.
But, somewhat of a nitpick - I'm wondering if there's a better way to say this than "this code is disabled". Something along the lines of
"... this method of file type detection is not utilized during direct upload to S3, since by nature of direct upload Dataverse never sees the contents of the file."
Your call. I just feel like, technically, it is more like "does not apply" or "cannot be used" than "disabled".

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please also note that the above applies to the next line, JHOVE as well.

@pdurbin pdurbin self-assigned this Nov 19, 2024
landreev and others added 3 commits November 19, 2024 10:02
Co-authored-by: Philip Durbin <philip_durbin@harvard.edu>
Co-authored-by: Philip Durbin <philip_durbin@harvard.edu>
Co-authored-by: Philip Durbin <philip_durbin@harvard.edu>
@pdurbin pdurbin removed their assignment Nov 19, 2024
@ofahimIQSS
Copy link
Contributor

Proof read, merging PR

@ofahimIQSS ofahimIQSS merged commit c814ee7 into develop Nov 19, 2024
@pdurbin pdurbin added this to the 6.5 milestone Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Size: 0.5 A percentage of a sprint. 0.35 hours

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants