TCPDF: Couldn't create upload directory

HerKle 12 Jan, 2016
TCPDF drives me mad:
While on Site #1 the action creates, saves and mails two pdf files, the same action fails on Site #2 – although the entire form has just been copied via backup/restore action from #1 to #2.

Here it just delivers a stupid error message "Couldn't create upload directory" – stupid, because those directories already exist and there is no need to create them.

After comparing both setups, directory permissions and even the tcpdf files in its directory – character by character – I cannot find any difference between the functioning and the non-functioning actions.

Anyone here, who can save my day? Thanks in advance.

Herbert
HerKle 12 Jan, 2016
Answer
After a good cup of sleep I solved it by myself:

The secret is named
index.html
.

TCPDF checks if the directory contains this file. If not, that error message is displayed.
The coding must have happened before world found out that index.html means little or no security…

Spent almost one day and night on this problem.
Hope to save others their sleep by posting this.

Happy regards,
Herbert
HerKle 26 Oct, 2017
1 Likes
Thanks to myself for recording the solution of this problem. Almost two years later facing the same problem that helped saving some hours. <3
This topic is locked and no more replies can be posted.