Skip to content

PicturesAlwaysLocal not working #247

@nilicule

Description

@nilicule

I think I may have narrowed down the root cause of my earlier reported pull request, where PutObjectInput.Bucket would return that "minimum field size of 1" error.

Using the latest master of the code (v2.0.0-beta1), running on OSX, with PicturesAlwaysLocal = true, uploading images seems to stall forever.

Console output:

Gokapi v2.0.0-beta1 starting
AWS login successful
Saving new files to cloud storage
Binding webserver to :53842
Webserver can be accessed at http://127.0.0.1:53842/admin
Press CTRL+C to stop Gokapi
2025/03/17 14:05:10 Starting NewFileFromChunk for chunk ID: a6b9643f-ece9-4694-9b94-dec13cdd9550
2025/03/17 14:05:10 Bucket information:
2025/03/17 14:05:10 File exists check: false for hash: 43d232a2b3a58428958efc6511638ef251a810cf
2025/03/17 14:05:10 Moving file to filesystem: 43d232a2b3a58428958efc6511638ef251a810cf
2025/03/17 14:05:10 Error moving to filesystem: InvalidParameter: 1 validation error(s) found.
- minimum field size of 1, PutObjectInput.Bucket.

I've attached a version of NewFileFromChunk() that generates the above logging.

Before I take a new stab at a new pull request, can you confirm the above behavior?

NewFileFromChunk.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions