mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-18 12:08:14 +02:00
added pseudorandom generator
This commit is contained in:
1 parent
46dc6cc47c
commit
4cddb6b5cb
9 files changed
+89
-47
No files matched your search
+1
-1
@@ -91,7 +91,7 @@ func (api *settingsApi) testS3(c echo.Context) error {
|
||||
}
|
||||
defer fs.Close()
|
||||
|
||||
testFileKey := "pb_test_" + security.RandomString(5) + "/test.txt"
|
||||
testFileKey := "pb_test_" + security.PseudoRandomString(5) + "/test.txt"
|
||||
|
||||
if err := fs.Upload([]byte("test"), testFileKey); err != nil {
|
||||
return NewBadRequestError("Failed to upload a test file. Raw error: \n"+err.Error(), nil)
|
||||
|
||||
Reference in new issue
Block a user