Skip to content

Comments

fix: Create new files on public pages for 31+#4794

Merged
elzody merged 3 commits intomainfrom
fix/create-file-public
May 27, 2025
Merged

fix: Create new files on public pages for 31+#4794
elzody merged 3 commits intomainfrom
fix/create-file-public

Conversation

@juliusknorr
Copy link
Member

@juliusknorr juliusknorr commented May 22, 2025

This is probably a hotfix for nextcloud/server#48064
Fix #3170

I thought it would be a quick way to bring back the old methods until we have time to dig into implementing this as a generic mechanism in server

It still needs

  • UI fixes or move template picker to vue
  • Name input needed
  • Some testing

@juliusknorr juliusknorr requested a review from elzody as a code owner May 22, 2025 13:38
@juliusknorr juliusknorr added the 2. developing Work in progress label May 22, 2025
@juliusknorr juliusknorr force-pushed the fix/create-file-public branch 3 times, most recently from 6e49c7c to 4de0292 Compare May 23, 2025 13:01
@elzody
Copy link
Collaborator

elzody commented May 23, 2025

Until we can implement something in the server to support this, it seems fine enough. I gave it some testing, and I have a few things to mention:

1. I noticed that the "New folder" button appears in between the other buttons, so it looks a bit strange:
image

2. The template picker does not take template fields into account or show a template filler. Since this would need to be implemented ourselves here until there is proper support on the server, I am assuming this not worth it, but just want to confirm.

3. If there is no template to choose from, the file is simply created and the name is auto-incremented, without actually asking the guest user to enter a name for the file. Is this expected?

@juliusknorr juliusknorr moved this to 👀 In review in 📝 Productivity team May 26, 2025
@juliusknorr juliusknorr self-assigned this May 26, 2025
@juliusknorr juliusknorr force-pushed the fix/create-file-public branch from 4de0292 to 3721b53 Compare May 26, 2025 19:55
@juliusknorr
Copy link
Member Author

Thanks a lot, much appreciated.

I pushed a fix for the ordering, the rest I would leave to the server implementation as it mainly restores previous behaviour now.

@juliusknorr juliusknorr added bug Something isn't working 3. to review Ready to be reviewed and removed 2. developing Work in progress labels May 26, 2025
@juliusknorr juliusknorr force-pushed the fix/create-file-public branch from 3721b53 to 7d181a9 Compare May 27, 2025 06:20
Copy link
Collaborator

@elzody elzody left a comment

Choose a reason for hiding this comment

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

Indeed, in that case it looks fine to just restore the capability.

@elzody elzody merged commit 656c86b into main May 27, 2025
72 checks passed
@elzody elzody deleted the fix/create-file-public branch May 27, 2025 21:42
@github-project-automation github-project-automation bot moved this from 👀 In review to ☑️ Done in 📝 Productivity team May 27, 2025
@grnd-alt
Copy link
Member

@elzody is there a reason to not backport this to stable31?

@elzody
Copy link
Collaborator

elzody commented Jul 3, 2025

@grnd-alt You're right, it probably should have been. I will look into it

@elzody
Copy link
Collaborator

elzody commented Jul 9, 2025

/backport to stable31

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

Labels

3. to review Ready to be reviewed bug Something isn't working

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

[F2V] Migrate new file menu to new API

3 participants