Delete file from server

All WYSIWYG Web Builder support issues that are not covered in the forums below.
Forum rules
IMPORTANT NOTE!!

DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.



PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Post Reply
brynj
 
 
Posts: 270
Joined: Fri May 31, 2013 3:56 pm

Delete file from server

Post by brynj »

OK, I can upload a file (pdf) to a folder on the server using the 'File Uploader'- is there a similar way to delete a file from the same folder.

The idea is older file(s) can be deleted as newer ones are added (Just to say I cannot use same name to overwrite older files)
User avatar
AliGW
 
 
Posts: 645
Joined: Thu Dec 19, 2024 3:41 pm

Re: Delete file from server

Post by AliGW »

Go to Publish > Explore and delete any extraneous files from the folder there.
Ali
Retired, but still loving to learn & very busy.
https://alisongwright.me.uk
Novice with WWB, but was an avid user of Serif WebPlus before.
Fairly expert at Microsoft Excel (but not VBA) & Affinity by Canva (for page layout).
brynj
 
 
Posts: 270
Joined: Fri May 31, 2013 3:56 pm

Re: Delete file from server

Post by brynj »

AliGW wrote: Sat Apr 25, 2026 1:49 pm Go to Publish > Explore and delete any extraneous files from the folder there.
Sorry I didn't explain well enough.

This would be for the user to do - not for me to do for them.

So a similar process where I have added uploader so they can upload their own pdf - ideally I need something they can list the documents in the folder and allows them to delete the older one(s) via the website.
Last edited by brynj on Sat Apr 25, 2026 2:14 pm, edited 1 time in total.
User avatar
AliGW
 
 
Posts: 645
Joined: Thu Dec 19, 2024 3:41 pm

Re: Delete file from server

Post by AliGW »

Sounds like a content management system might fit the bill.
Ali
Retired, but still loving to learn & very busy.
https://alisongwright.me.uk
Novice with WWB, but was an avid user of Serif WebPlus before.
Fairly expert at Microsoft Excel (but not VBA) & Affinity by Canva (for page layout).
brynj
 
 
Posts: 270
Joined: Fri May 31, 2013 3:56 pm

Re: Delete file from server

Post by brynj »

AliGW wrote: Sat Apr 25, 2026 1:54 pm Sounds like a content management system might fit the bill.
Maybe but it needs to be very simplistic.

Basically - add one file & delete one file in the simplest possible manner (first part is ok and simple)

There are file listers within WYSIWYG so ideally something like that with a delete button beside each file
User avatar
Pablo
 
Posts: 24544
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Delete file from server

Post by Pablo »

There is no option to remove a file. This requires PHP code.
brynj
 
 
Posts: 270
Joined: Fri May 31, 2013 3:56 pm

Re: Delete file from server

Post by brynj »

Pablo wrote: Sat Apr 25, 2026 2:39 pm There is no option to remove a file. This requires PHP code.
I'm not having a lot of luck today - nothing I want to do seems possible :D
User avatar
onlye
 
 
Posts: 519
Joined: Sun Jun 17, 2018 12:36 am
Location: Gluckstadt, MS USA
Contact:

Re: Delete file from server

Post by onlye »

i have similar need for number of my clients. i'll have to find it but there is a simple script you can put on a page and based on login will allow access to specific folder where you can delete a file. probably just what you are looking for. might take a day or two to find it.
onlye
Gluckstadt, MS USA
User avatar
Pablo
 
Posts: 24544
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Delete file from server

Post by Pablo »

I'm not having a lot of luck today - nothing I want to do seems possible :D
The software offers thousands of options, but even with millions more, there would always be additional features someone might want.
It is simply not possible to provide standard solutions for every imaginable use case. For some requirements, custom scripting or a third-party service will always be necessary.
brynj
 
 
Posts: 270
Joined: Fri May 31, 2013 3:56 pm

Re: Delete file from server

Post by brynj »

onlye wrote: Sat Apr 25, 2026 4:18 pm i have similar need for number of my clients. i'll have to find it but there is a simple script you can put on a page and based on login will allow access to specific folder where you can delete a file. probably just what you are looking for. might take a day or two to find it.
That would be great - many thanks …..
brynj
 
 
Posts: 270
Joined: Fri May 31, 2013 3:56 pm

Re: Delete file from server

Post by brynj »

Pablo wrote: Sat Apr 25, 2026 4:50 pm
I'm not having a lot of luck today - nothing I want to do seems possible :D
The software offers thousands of options, but even with millions more, there would always be additional features someone might want.
It is simply not possible to provide standard solutions for every imaginable use case. For some requirements, custom scripting or a third-party service will always be necessary.

Indeed :D
User avatar
onlye
 
 
Posts: 519
Joined: Sun Jun 17, 2018 12:36 am
Location: Gluckstadt, MS USA
Contact:

Re: Delete file from server

Post by onlye »

here is the utility i am trying out for clients to manage files. it will allow you to delete files. you can setup multiple users and define the specific folder on the server that user has access to. it doesn't have to be confined to a "user" this just lets a customer use the login to control the folder they are working with.

https://tinyfilemanager.github.io/

you'll need to upload the zip and expand on server, then configure users, and I create a page to access tiny file manger and then used an iframe to display it in a layout grid on an password protected admin page.
onlye
Gluckstadt, MS USA
brynj
 
 
Posts: 270
Joined: Fri May 31, 2013 3:56 pm

Re: Delete file from server

Post by brynj »

Many thanks.

Will have a look tomorrow.
brynj
 
 
Posts: 270
Joined: Fri May 31, 2013 3:56 pm

Re: Delete file from server

Post by brynj »

Hi onlye

Looks exactly what I need

I won't pester you on the forum but one quick question - have you found a way to open in a particular folder rather than root directory ?

I found the 'user specific directories' setting but whatever path I use it errors with 'not found' - must be something I am missing or not typing correctly

The folder I want to give access to is 'pdfs' but using htdocs/pdfs errors and various combinations likewise.

// user specific directories
// array('Username' => 'Directory path', 'Username2' => 'Directory path', ...)
$directories_users = array(
'user' => 'root/user-folder',
'guest' => 'root/guest/temp'
);

Thanks
User avatar
onlye
 
 
Posts: 519
Joined: Sun Jun 17, 2018 12:36 am
Location: Gluckstadt, MS USA
Contact:

Re: Delete file from server

Post by onlye »

brynj wrote: Tue Apr 28, 2026 7:25 am Hi onlye

Looks exactly what I need

I won't pester you on the forum but one quick question - have you found a way to open in a particular folder rather than root directory ?

I found the 'user specific directories' setting but whatever path I use it errors with 'not found' - must be something I am missing or not typing correctly

The folder I want to give access to is 'pdfs' but using htdocs/pdfs errors and various combinations likewise.

// user specific directories
// array('Username' => 'Directory path', 'Username2' => 'Directory path', ...)
$directories_users = array(
'user' => 'root/user-folder',
'guest' => 'root/guest/temp'
);
make sure to set the defaut root directory if you need it other than actual root
then in the user you can use ./ where the . indicates the root. other syntax gave me errors, had same issue

so my user login has access to the /pdf directory under the root

'user' => './pdf'

you can also specify what files can be seen. for instance i have a /docx folder but only want a particular user to login and be able to see the pdf files and not .txt, .jpg etc
onlye
Gluckstadt, MS USA
brynj
 
 
Posts: 270
Joined: Fri May 31, 2013 3:56 pm

Re: Delete file from server

Post by brynj »

onlye wrote: Tue Apr 28, 2026 4:42 pm make sure to set the defaut root directory if you need it other than actual root
then in the user you can use ./ where the . indicates the root. other syntax gave me errors, had same issue

so my user login has access to the /pdf directory under the root

'user' => './pdf'

you can also specify what files can be seen. for instance i have a /docx folder but only want a particular user to login and be able to see the pdf files and not .txt, .jpg etc
That's it - so simple when you know how - thanks again
User avatar
onlye
 
 
Posts: 519
Joined: Sun Jun 17, 2018 12:36 am
Location: Gluckstadt, MS USA
Contact:

Re: Delete file from server

Post by onlye »

AliGW wrote: Sat Apr 25, 2026 1:54 pm Sounds like a content management system might fit the bill.
Hey Ali,

Might ad this to you wonderful list of tool.
onlye
Gluckstadt, MS USA
User avatar
AliGW
 
 
Posts: 645
Joined: Thu Dec 19, 2024 3:41 pm

Re: Delete file from server

Post by AliGW »

Not sure I need it, but it looks good.
Ali
Retired, but still loving to learn & very busy.
https://alisongwright.me.uk
Novice with WWB, but was an avid user of Serif WebPlus before.
Fairly expert at Microsoft Excel (but not VBA) & Affinity by Canva (for page layout).
User avatar
AliGW
 
 
Posts: 645
Joined: Thu Dec 19, 2024 3:41 pm

Re: Delete file from server

Post by AliGW »

Out of interest, does it support user groups?

Strange caveat on the GitHub listing:
Caution! Avoid utilizing this script as a standard file manager in public spaces. It is imperative to remove this script from the server after completing any tasks.
Not really sure what it's saying, but presume it's safe to use the script in a password-protected secure area.
Ali
Retired, but still loving to learn & very busy.
https://alisongwright.me.uk
Novice with WWB, but was an avid user of Serif WebPlus before.
Fairly expert at Microsoft Excel (but not VBA) & Affinity by Canva (for page layout).
User avatar
AliGW
 
 
Posts: 645
Joined: Thu Dec 19, 2024 3:41 pm

Re: Delete file from server

Post by AliGW »

I'm having a play with this Tiny File Manager.

Anyone know how to include the PHP in a page so that it appears below my header layout grids?

I can get it to appear happily enough, and it works, but can't work out how to make it look integrated. I tried an iFrame and it didn't like that.

Any ideas?
Ali
Retired, but still loving to learn & very busy.
https://alisongwright.me.uk
Novice with WWB, but was an avid user of Serif WebPlus before.
Fairly expert at Microsoft Excel (but not VBA) & Affinity by Canva (for page layout).
User avatar
onlye
 
 
Posts: 519
Joined: Sun Jun 17, 2018 12:36 am
Location: Gluckstadt, MS USA
Contact:

Re: Delete file from server

Post by onlye »

AliGW wrote: Thu Apr 30, 2026 10:15 am I'm having a play with this Tiny File Manager.

Anyone know how to include the PHP in a page so that it appears below my header layout grids?

I can get it to appear happily enough, and it works, but can't work out how to make it look integrated. I tried an iFrame and it didn't like that.

Any ideas?
i created a page for the tiny file manager in wizzy that publishes but not in the nav and added password protection to that page.
then i used an iframe (inside a layout grid) to display the tiny file manager page on the actual page I want it to appear.
onlye
Gluckstadt, MS USA
User avatar
AliGW
 
 
Posts: 645
Joined: Thu Dec 19, 2024 3:41 pm

Re: Delete file from server

Post by AliGW »

Are you bypassing its own login, then? If so, I’d like to know how to do that. I couldn’t get it to display in an iFrame.
Ali
Retired, but still loving to learn & very busy.
https://alisongwright.me.uk
Novice with WWB, but was an avid user of Serif WebPlus before.
Fairly expert at Microsoft Excel (but not VBA) & Affinity by Canva (for page layout).
User avatar
onlye
 
 
Posts: 519
Joined: Sun Jun 17, 2018 12:36 am
Location: Gluckstadt, MS USA
Contact:

Re: Delete file from server

Post by onlye »

AliGW wrote: Thu Apr 30, 2026 8:36 pm Are you bypassing its own login, then? If so, I’d like to know how to do that. I couldn’t get it to display in an iFrame.
i am just referencing the tinyfilemanager.php page in the iframe. the tfm comes up with its login. is that what you were asking?

i have an experiment project with a collection of tools to provide cms capabilities to clients for wizzy tools on their sites. i'll share that project if you like, but i'll need to clean up some of the url references. includes; file uplodad, list files in folder, editable content, misc calendars, editor for calendars updates, tiny file manager, csv editor, - not there but have seveal experiment data base projects.
onlye
Gluckstadt, MS USA
User avatar
AliGW
 
 
Posts: 645
Joined: Thu Dec 19, 2024 3:41 pm

Re: Delete file from server

Post by AliGW »

Sounds interesting - thanks.
Ali
Retired, but still loving to learn & very busy.
https://alisongwright.me.uk
Novice with WWB, but was an avid user of Serif WebPlus before.
Fairly expert at Microsoft Excel (but not VBA) & Affinity by Canva (for page layout).
Post Reply