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
This code nicely saves the uploded files in the "folder2" directory. However it also creates an empty html-file in the "folder2" directory. This file is named "folder2index". This behavior is undesired, because I simply need to upload a few files without anything else. For now I have just added some code to automatically remove the html-file.
The text was updated successfully, but these errors were encountered:
Add a slash in the end of the path img/folder1/folder2/ <-
You will get the correct index.html file.
if you don't need index.html you can create your own logic to move uploaded files.
I have tried to implement file uploading using the example from the Codeigniter 4 documentation. In my controller I have this code:
This code nicely saves the uploded files in the "folder2" directory. However it also creates an empty html-file in the "folder2" directory. This file is named "folder2index". This behavior is undesired, because I simply need to upload a few files without anything else. For now I have just added some code to automatically remove the html-file.
The text was updated successfully, but these errors were encountered: