Skip to content

Commit 6dac2e7

Browse files
committed
doc: documentation added for upload directory configuration
1 parent ce5754b commit 6dac2e7

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,18 @@ def options
8282
options={
8383
response_fields: 'isPrivateFile, tags',
8484
tags: %w[abc def],
85-
use_unique_file_name: false
85+
use_unique_file_name: false,
86+
folder: "your_directory/"
8687
}
8788
end
89+
90+
# If you want to set upload dir then you can use following method or you can also use options method.
91+
# This method shuld return string
92+
def store_dir
93+
"your_directory/"
94+
end
95+
96+
8897
```
8998

9099
Then you need to modify your model. for example- if your model name is employee then do these changes

0 commit comments

Comments
 (0)