PartyWifi / PartyWifi.Server

This is the central server of the PartyWifi ecosystem.
GNU General Public License v3.0
2 stars 1 forks source link

Export uploaded originals #38

Open dbeuchler opened 7 years ago

dbeuchler commented 7 years ago

The admin page should have an export function to export all uploaded images on the local file system or on removable devices

dbeuchler commented 7 years ago

Which folders should be provided?

I think it should be enough to export the images on external removable devices. Maybe for special admins also on user folder.

On all systems (Linux, OS X, Windows), the following command will return the DriveInfo: var drives = DriveInfo.GetDrives().Where(di => di.DriveType == DriveType.Removable). We do not need the RuntimeInformation.IsOSPlatform checks.

With .NET Core 1.1 the Home-Directory can only be loaded with Environment.GetEnvironmentVariable("HOME"). From .NET Standard 1.7 the Environment.SpecialFolder.UserProfile can be used (we can wait for #37).

File Browser

Whats about a browser for possible folders on the removable device?

Something like this:

bildschirmfoto 2017-05-29 um 20 21 50
Toxantron commented 7 years ago

Have you tested if var drives = DriveInfo.GetDrives().Where(di => di.DriveType == DriveType.Removable) returns the mount path or just the drive partition. Those are both "file path" in Unix - but do not have the same behavior.

I like the FileBrowser idea though