Wappler 7 Beta 11 and 6.8.0
Windows 11
PHP Local server
Classing this as a bug as i guess it is but I accept these circumstances are pretty unusual.
I am revamping aspects of a site developed by someone else.
I have replicated the site exactly, including data, locally where i test it and wish to deploy it to a staging server for online testing.
The site has a huge amount of user data in it amounting to over 376,000 files and 38 gb of user data
By definition, this folder should NOT be uploaded when publishing, effectively being an excluded folder.
However when hitting publish with as large amount of data in that folder the publish process seems to scan the entire uploads folder regardless (hence 35 second wait then crash).
So maybe the files in the uploads folder are scanned and filenames listed i thought.
So i added a test file to the repository folder and hit publish again and i can see that file in the files list
This appears to confirm that when publishing, Wappler does scan all the files in the site INCLUDING the user uploads folder even though those files should not be uploaded.
I assume the crash results from Wappler trying to list the 376K+ files in the user uploads folder even though the folder is not going to be uploads. Not really surprising
Thanks @Cheese, I will take a look but would prefer to use a wappler only solution if possible. Dont need the user data to be actually uploaded on publish, just need it not to crash wappler.
That could cause some real problems as development data could overwrite production data. That effectively would make publish in FTP environment unusable.
The folder was excluded from the ftp publishing but there was a problem when also webroot folder was specified. Also escaping of the folder name wasn't really well.