Skip to content

Fix several minor issues on FileService - #8

Open
tejitak wants to merge 3 commits into
laravel-rocket:masterfrom
tejitak:fix-file-service
Open

Fix several minor issues on FileService#8
tejitak wants to merge 3 commits into
laravel-rocket:masterfrom
tejitak:fix-file-service

Conversation

@tejitak

@tejitak tejitak commented Jan 18, 2019

Copy link
Copy Markdown

This PR contains the following three minor fixes.

Use original_file_name for file model scheme

Use original_file_name instread of original_filename to align with File Model scheme.

Fix a parameter name for fileUploadService->delete

Use key instread of s3_key. s3_key is not used in https://github.com/laravel-rocket/foundation/blob/master/src/Services/Production/FileUploadS3Service.php#L87

Fix unlink argument

Originally, the code causes an error unlink() expects parameter 1 to be a valid path.... To fix it, change the parameter to file path string.

@tejitak tejitak changed the title Fix serval minor issues on FileService Fix several minor issues on FileService Jan 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant