Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chage file save folder? #353

Closed
abooks23 opened this issue Jun 22, 2019 · 2 comments
Closed

chage file save folder? #353

abooks23 opened this issue Jun 22, 2019 · 2 comments

Comments

@abooks23
Copy link

Hi
can I save data from form to another place different from user/data
eg
form call from page01 and data will be saved in this folder

@rhukster
Copy link
Member

The save location of user/data is based on the user://data stream. So not really.

If you are interested, you can see this in the code here: https://github.com/getgrav/grav-plugin-form/blob/develop/form.php#L557-L559

It is normal behavior for Grav to store all user data inside user/data. You could, however, create your own plugin to listen to a custom action, with an onFormProcessed() event, and use the same save logic, but change the location to wherever you want. Grav is very flexible like that.

@abooks23 abooks23 closed this as completed Jul 2, 2019
@mahagr
Copy link
Member

mahagr commented Jul 5, 2019

Actually, I've changed this to use user-data:// stream which can easily be relocated. Though there are likely still places using the old location (like this one).

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

No branches or pull requests

3 participants