UI for file stuff.
the build was successful

This commit is contained in:
2019-09-15 16:34:16 +02:00
parent c8ced52e1a
commit 5dbed6d632
7 changed files with 73 additions and 16 deletions
+2 -4
View File
@@ -49,10 +49,8 @@ func (client *Client) UploadFile(ctx context.Context, name string, mimeType stri
}
// RemoveFile removes a file from the space
func (client *Client) RemoveFile(folder string, name string) error {
path := folder + "/" + name
return client.s3.RemoveObject(client.bucket, client.spaceRoot+"/"+path)
func (client *Client) RemoveFile(name string) error {
return client.s3.RemoveObject(client.bucket, client.spaceRoot+"/"+name)
}
// DownloadFile opens a file for download, using the same path format as the UploadFile function. Remember to Close it!