Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Respect allowed file types option #755

Merged
merged 5 commits into from
Jul 30, 2024
Merged

Respect allowed file types option #755

merged 5 commits into from
Jul 30, 2024

Conversation

jack-tii
Copy link
Contributor

Right now we don't respect the 'Allow Submission of Any File Type' option. We are currently allowing submission of any file type regardless of whether this option is set or not.

I have added a list of file types to accept based on this guide: https://guides.turnitin.com/hc/en-us/articles/23929463501965-File-requirements

It is important that the list of accepted file extensions is accurate, so please could any reviewers check it and let me know if there are any that are wrong or any more I need to add.

view.php Outdated
$acceptedtypes = ['*'];
}
else {
$acceptedtypes = ['doc', 'docx', 'wpd', 'html', 'htm', 'ps',

Choose a reason for hiding this comment

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

where did this list of types come from?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I created that list based on the guide found here: https://guides.turnitin.com/hc/en-us/articles/23929463501965-File-requirements

There is a list of file types in PP that I could copy from, but I am unsure whether we would have different allowed file types between the two plugins

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK I figure it makes sense that they would be the same, so I have copied the list from the other plugin for now and pushed another commit

Choose a reason for hiding this comment

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

please get Stephanie to confirm this list

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK will do

Copy link
Contributor

@carl-hostrander carl-hostrander left a comment

Choose a reason for hiding this comment

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

approved

@jack-tii jack-tii merged commit a73553a into develop Jul 30, 2024
@jack-tii jack-tii deleted the allowed-file-types branch July 30, 2024 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants