Conversation
7aebe4c to
ced9f68
Compare
|
@fmiccolis as you did the original implementation, please check the updated code - I've made some adjustments for the better i guess, as it´s a bit more reliable and adjustable. |
|
@benjaminkott ok I'll test the new code! |
a5b7749 to
dde22bf
Compare
|
Hi @benjaminkott , I was thinking about something: in the file uploader we can let the user upload it's own template for the webpage by adding the folder /template, what do you think? |
I am still unsure about this one, as it requires some kind of expert knowledge. If you know what you are doing - it should be more or less easy to adjust. Everyone else, should probably only use the provided option. Did you remove the initial created |
Yes, maybe You're right..
I have changed the title so in my ftp server a new folder has been created and the template loaded on. |
df47e32 to
4f99e14
Compare
ef112ac to
55f0191
Compare
aa8e9c0 to
2fd2b6d
Compare
This patch introduces Flysystem (https://flysystem.thephpleague.com/) as the underlying package to handle remote storage. For now, we are only integrating SFTP in addition to FTP to allow more connection options for FTP uploads. There will now be an option to select FTP or SFTP, and the correct adapter will be used to create the connection. The code has been restructured to move logic away from the endpoints towards a central service. This will make it easier to implement and maintain in the future. Some options have been removed as they do not seem to work reliably: - `ftp:appendDate` is a nice idea, but it has a flawed implementation as the date is evaluated on each request. This results in a mismatch between requested and actual URLs to files. - `ftp:upload_thumb`: Thumbnails are now always uploaded, ensuring all files are available on the server for the generated webpage. Defaults were introduced for several config settings. This way, we can rely on the settings being set and do not need to guess. The template for the server has been restructured. Instead of parsing the template and potentially risking breaking it, we are now providing a dedicated config file that can be loaded without problems. Additionally, a test template that uses local data is now available. Change-Id: Iac24b838617c6d1a4147a385236cd430cad3eb09
Change-Id: Ie21fde75c51c605600a407e6c08de33c8834576c
This patch introduces Flysystem (https://flysystem.thephpleague.com/) as
the underlying package to handle remote storage. For now, we are only
integrating SFTP in addition to FTP to allow more connection options for
FTP uploads. There will now be an option to select FTP or SFTP, and the
correct adapter will be used to create the connection.
The code has been restructured to move logic away from the endpoints
towards a central service. This will make it easier to implement and
maintain in the future.
Some options have been removed as they do not seem to work reliably:
ftp:appendDateis a nice idea, but it has a flawed implementationas the date is evaluated on each request. This results in a mismatch
between requested and actual URLs to files.
ftp:upload_thumb: Thumbnails are now always uploaded, ensuring allfiles are available on the server for the generated webpage.
Defaults were introduced for several config settings. This way, we can
rely on the settings being set and do not need to guess.
The template for the server has been restructured. Instead of parsing
the template and potentially risking breaking it, we are now providing
a dedicated config file that can be loaded without problems.
Additionally, a test template that uses local data is now available.