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

copy() fails to understand filenames without extensions #56

Open
moraleida opened this issue Oct 22, 2015 · 0 comments
Open

copy() fails to understand filenames without extensions #56

moraleida opened this issue Oct 22, 2015 · 0 comments

Comments

@moraleida
Copy link

PHP Warning:  copy(): The second argument to copy() function cannot be a directory in /../htdocs/wp-content/plugins/S3-Uploads/inc/class-s3-uploads.php on line 187

The original implementation of that function would fire an error on my VVV because copy() couldn't understand that tempnam() generated filenames were real files, not directories.

Using the real file name available on $file['name'] array solved this -> https://github.com/moraleida/S3-Uploads/blob/fix-php-cant-copy-to-directory/inc/class-s3-uploads.php#L184

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

No branches or pull requests

1 participant