You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which operating systems have you tested for this bug?
Linux
Which server did you use?
apache
Database
MySQL
What happened?
Whenever a file gets uploaded and saved with $file->move(), it doesn't only save the file in the specified directory, but it also creates an empty index.html file, every time.
I found this issue, but appending a slash at the end of the path didn't solve my problem.
Steps to Reproduce
Basically, all I am doing is saving the file with move():
This is by design - to increase security if you store files in a publicly accessible directory. It will prevent all files in the directory from being displayed (listed) if the server configuration allows it.
michalsn
removed
the
bug
Verified issues on the current code behavior or pull requests that will fix them
label
Jan 2, 2024
Oh, I see. I couldn't find that information in the documentation, so I thought it was a bug. Thanks for the clarification, I will close this issue then.
PHP Version
8.1
CodeIgniter4 Version
4.0
CodeIgniter4 Installation Method
Composer (using
codeigniter4/appstarter
)Which operating systems have you tested for this bug?
Linux
Which server did you use?
apache
Database
MySQL
What happened?
Whenever a file gets uploaded and saved with
$file->move()
, it doesn't only save the file in the specified directory, but it also creates an emptyindex.html
file, every time.I found this issue, but appending a slash at the end of the path didn't solve my problem.
Steps to Reproduce
Basically, all I am doing is saving the file with
move()
:Expected Output
To just save the file without adding empty, unrelated files.
Anything else?
No response
The text was updated successfully, but these errors were encountered: