mirror of
https://github.com/docusealco/docuseal
synced 2026-11-08 15:42:32 -05:00
add folders structure
This commit is contained in:
1 parent
f8712a9da9
commit
380f553a17
30 files changed
+405
-56
No files matched your search
@@ -6,6 +6,7 @@ class TemplatesUploadsController < ApplicationController
|
||||
def create
|
||||
@template.account = current_account
|
||||
@template.author = current_user
|
||||
@template.folder = TemplateFolders.find_or_create_by_name(current_user, params[:folder_name])
|
||||
@template.name = File.basename(params[:files].first.original_filename, '.*')
|
||||
|
||||
@template.save!
|
||||
|
||||
Reference in new issue
Block a user