Skip to content

Conversation

@skjnldsv
Copy link
Member

Fix #1292

@skjnldsv skjnldsv requested a review from artonge October 11, 2022 13:38
@skjnldsv skjnldsv self-assigned this Oct 11, 2022
@skjnldsv skjnldsv added bug Something isn't working 3. to review Waiting for reviews labels Oct 11, 2022
@skjnldsv skjnldsv added this to the Nextcloud 26 milestone Oct 11, 2022
@skjnldsv
Copy link
Member Author

/backport to stable25

@backportbot-nextcloud backportbot-nextcloud bot added the backport-request Pending backport by the backport-bot label Oct 11, 2022
$photosFolder = $this->userFolder->get($photosLocation);
} catch (NotFoundException $e) {
// If the folder does not exists, create it
$photosFolder = $this->userFolder->newFolder($photosLocation);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if the user cannot create it will throw and reject the upload properly

@skjnldsv skjnldsv force-pushed the fix/create-folder-photolocation branch from a95ae1d to e69199b Compare October 11, 2022 13:41
Copy link
Collaborator

@artonge artonge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure why it is different, but if it works better, then ok :)

@skjnldsv
Copy link
Member Author

Not sure why it is different, but if it works better, then ok :)

We need to create the default folder somewhere 😁

@skjnldsv skjnldsv merged commit a0e7678 into master Oct 11, 2022
@skjnldsv skjnldsv deleted the fix/create-folder-photolocation branch October 11, 2022 15:35
@backportbot-nextcloud backportbot-nextcloud bot removed the backport-request Pending backport by the backport-bot label Oct 11, 2022
@skjnldsv

This comment was marked as resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Internal server error at cloud.nextcloud com

3 participants