files.com 1.0.299 → 1.0.300
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_VERSION +1 -1
- data/docs/bundle.md +16 -0
- data/lib/files.com/models/bundle.rb +27 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d254f2d5da5d785a5be384cc526a1697a3774a8a31df315dfba7dfc689c115b8
|
4
|
+
data.tar.gz: 3303a48addebc1b06e1a0a16a9019254b1dfea5733f74adeeac7c9e53aeed0de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e5f9056389ef70a9b40e56f167e1c02959fd182a69ce214191d0920f2a7f5df7917b75e739aafb53a1ffa8464a5956ac1de3aa34792e764493418b5478487f2
|
7
|
+
data.tar.gz: 0b563cf3388670d93ed033108464e2be0f4fbec633c6be0476d6fe9be48243047bb77f543e87d0a6639cbe71aaa4559c5f0aca414b4a27d37512022e4a33c571
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.300
|
data/docs/bundle.md
CHANGED
@@ -19,9 +19,11 @@
|
|
19
19
|
"skip_company": true,
|
20
20
|
"id": 1,
|
21
21
|
"created_at": "2000-01-01T01:00:00Z",
|
22
|
+
"dont_separate_submissions_by_folder": true,
|
22
23
|
"expires_at": "2000-01-01T01:00:00Z",
|
23
24
|
"max_uses": 1,
|
24
25
|
"note": "The internal note on the bundle.",
|
26
|
+
"path_template": "{{name}}_{{ip}}",
|
25
27
|
"user_id": 1,
|
26
28
|
"username": "user",
|
27
29
|
"clickwrap_id": 1,
|
@@ -52,9 +54,11 @@
|
|
52
54
|
* `skip_company` (boolean): BundleRegistrations can be saved without providing company?
|
53
55
|
* `id` (int64): Bundle ID
|
54
56
|
* `created_at` (date-time): Bundle created at date/time
|
57
|
+
* `dont_separate_submissions_by_folder` (boolean): Do not create subfolders for files uploaded to this share. Note: there are subtle security pitfalls with allowing anonymous uploads from multiple users to live in the same folder. We strongly discourage use of this option unless absolutely required.
|
55
58
|
* `expires_at` (date-time): Bundle expiration date/time
|
56
59
|
* `max_uses` (int64): Maximum number of times bundle can be accessed
|
57
60
|
* `note` (string): Bundle internal note
|
61
|
+
* `path_template` (string): Template for creating submission subfolders. Can use the uploader's name, email address, ip, company, and any custom form data.
|
58
62
|
* `user_id` (int64): Bundle creator user ID
|
59
63
|
* `username` (string): Bundle creator username
|
60
64
|
* `clickwrap_id` (int64): ID of the clickwrap to use with this bundle.
|
@@ -117,11 +121,13 @@ Files::Bundle.create(
|
|
117
121
|
paths: ["file.txt"],
|
118
122
|
password: "Password",
|
119
123
|
form_field_set_id: 1,
|
124
|
+
dont_separate_submissions_by_folder: true,
|
120
125
|
expires_at: "2000-01-01T01:00:00Z",
|
121
126
|
max_uses: 1,
|
122
127
|
description: "The public description of the bundle.",
|
123
128
|
note: "The internal note on the bundle.",
|
124
129
|
code: "abc123",
|
130
|
+
path_template: "{{name}}_{{ip}}",
|
125
131
|
permissions: "read",
|
126
132
|
preview_only: true,
|
127
133
|
require_registration: true,
|
@@ -140,11 +146,13 @@ Files::Bundle.create(
|
|
140
146
|
* `paths` (array(string)): Required - A list of paths to include in this bundle.
|
141
147
|
* `password` (string): Password for this bundle.
|
142
148
|
* `form_field_set_id` (int64): Id of Form Field Set to use with this bundle
|
149
|
+
* `dont_separate_submissions_by_folder` (boolean): Do not create subfolders for files uploaded to this share. Note: there are subtle security pitfalls with allowing anonymous uploads from multiple users to live in the same folder. We strongly discourage use of this option unless absolutely required.
|
143
150
|
* `expires_at` (string): Bundle expiration date/time
|
144
151
|
* `max_uses` (int64): Maximum number of times bundle can be accessed
|
145
152
|
* `description` (string): Public description
|
146
153
|
* `note` (string): Bundle internal note
|
147
154
|
* `code` (string): Bundle code. This code forms the end part of the Public URL.
|
155
|
+
* `path_template` (string): Template for creating submission subfolders. Can use the uploader's name, email address, ip, company, and any custom form data.
|
148
156
|
* `permissions` (string): Permissions that apply to Folders in this Share Link.
|
149
157
|
* `preview_only` (boolean): Restrict users to previewing files only?
|
150
158
|
* `require_registration` (boolean): Show a registration page that captures the downloader's name and email address?
|
@@ -189,10 +197,12 @@ Files::Bundle.update(id,
|
|
189
197
|
clickwrap_id: 1,
|
190
198
|
code: "abc123",
|
191
199
|
description: "The public description of the bundle.",
|
200
|
+
dont_separate_submissions_by_folder: true,
|
192
201
|
expires_at: "2000-01-01T01:00:00Z",
|
193
202
|
inbox_id: 1,
|
194
203
|
max_uses: 1,
|
195
204
|
note: "The internal note on the bundle.",
|
205
|
+
path_template: "{{name}}_{{ip}}",
|
196
206
|
permissions: "read",
|
197
207
|
preview_only: true,
|
198
208
|
require_registration: true,
|
@@ -213,10 +223,12 @@ Files::Bundle.update(id,
|
|
213
223
|
* `clickwrap_id` (int64): ID of the clickwrap to use with this bundle.
|
214
224
|
* `code` (string): Bundle code. This code forms the end part of the Public URL.
|
215
225
|
* `description` (string): Public description
|
226
|
+
* `dont_separate_submissions_by_folder` (boolean): Do not create subfolders for files uploaded to this share. Note: there are subtle security pitfalls with allowing anonymous uploads from multiple users to live in the same folder. We strongly discourage use of this option unless absolutely required.
|
216
227
|
* `expires_at` (string): Bundle expiration date/time
|
217
228
|
* `inbox_id` (int64): ID of the associated inbox, if available.
|
218
229
|
* `max_uses` (int64): Maximum number of times bundle can be accessed
|
219
230
|
* `note` (string): Bundle internal note
|
231
|
+
* `path_template` (string): Template for creating submission subfolders. Can use the uploader's name, email address, ip, company, and any custom form data.
|
220
232
|
* `permissions` (string): Permissions that apply to Folders in this Share Link.
|
221
233
|
* `preview_only` (boolean): Restrict users to previewing files only?
|
222
234
|
* `require_registration` (boolean): Show a registration page that captures the downloader's name and email address?
|
@@ -277,10 +289,12 @@ bundle.update(
|
|
277
289
|
clickwrap_id: 1,
|
278
290
|
code: "abc123",
|
279
291
|
description: "The public description of the bundle.",
|
292
|
+
dont_separate_submissions_by_folder: true,
|
280
293
|
expires_at: "2000-01-01T01:00:00Z",
|
281
294
|
inbox_id: 1,
|
282
295
|
max_uses: 1,
|
283
296
|
note: "The internal note on the bundle.",
|
297
|
+
path_template: "{{name}}_{{ip}}",
|
284
298
|
permissions: "read",
|
285
299
|
preview_only: true,
|
286
300
|
require_registration: true,
|
@@ -301,10 +315,12 @@ bundle.update(
|
|
301
315
|
* `clickwrap_id` (int64): ID of the clickwrap to use with this bundle.
|
302
316
|
* `code` (string): Bundle code. This code forms the end part of the Public URL.
|
303
317
|
* `description` (string): Public description
|
318
|
+
* `dont_separate_submissions_by_folder` (boolean): Do not create subfolders for files uploaded to this share. Note: there are subtle security pitfalls with allowing anonymous uploads from multiple users to live in the same folder. We strongly discourage use of this option unless absolutely required.
|
304
319
|
* `expires_at` (string): Bundle expiration date/time
|
305
320
|
* `inbox_id` (int64): ID of the associated inbox, if available.
|
306
321
|
* `max_uses` (int64): Maximum number of times bundle can be accessed
|
307
322
|
* `note` (string): Bundle internal note
|
323
|
+
* `path_template` (string): Template for creating submission subfolders. Can use the uploader's name, email address, ip, company, and any custom form data.
|
308
324
|
* `permissions` (string): Permissions that apply to Folders in this Share Link.
|
309
325
|
* `preview_only` (boolean): Restrict users to previewing files only?
|
310
326
|
* `require_registration` (boolean): Show a registration page that captures the downloader's name and email address?
|
@@ -140,6 +140,15 @@ module Files
|
|
140
140
|
@attributes[:created_at]
|
141
141
|
end
|
142
142
|
|
143
|
+
# boolean - Do not create subfolders for files uploaded to this share. Note: there are subtle security pitfalls with allowing anonymous uploads from multiple users to live in the same folder. We strongly discourage use of this option unless absolutely required.
|
144
|
+
def dont_separate_submissions_by_folder
|
145
|
+
@attributes[:dont_separate_submissions_by_folder]
|
146
|
+
end
|
147
|
+
|
148
|
+
def dont_separate_submissions_by_folder=(value)
|
149
|
+
@attributes[:dont_separate_submissions_by_folder] = value
|
150
|
+
end
|
151
|
+
|
143
152
|
# date-time - Bundle expiration date/time
|
144
153
|
def expires_at
|
145
154
|
@attributes[:expires_at]
|
@@ -167,6 +176,15 @@ module Files
|
|
167
176
|
@attributes[:note] = value
|
168
177
|
end
|
169
178
|
|
179
|
+
# string - Template for creating submission subfolders. Can use the uploader's name, email address, ip, company, and any custom form data.
|
180
|
+
def path_template
|
181
|
+
@attributes[:path_template]
|
182
|
+
end
|
183
|
+
|
184
|
+
def path_template=(value)
|
185
|
+
@attributes[:path_template] = value
|
186
|
+
end
|
187
|
+
|
170
188
|
# int64 - Bundle creator user ID
|
171
189
|
def user_id
|
172
190
|
@attributes[:user_id]
|
@@ -301,10 +319,12 @@ module Files
|
|
301
319
|
# clickwrap_id - int64 - ID of the clickwrap to use with this bundle.
|
302
320
|
# code - string - Bundle code. This code forms the end part of the Public URL.
|
303
321
|
# description - string - Public description
|
322
|
+
# dont_separate_submissions_by_folder - boolean - Do not create subfolders for files uploaded to this share. Note: there are subtle security pitfalls with allowing anonymous uploads from multiple users to live in the same folder. We strongly discourage use of this option unless absolutely required.
|
304
323
|
# expires_at - string - Bundle expiration date/time
|
305
324
|
# inbox_id - int64 - ID of the associated inbox, if available.
|
306
325
|
# max_uses - int64 - Maximum number of times bundle can be accessed
|
307
326
|
# note - string - Bundle internal note
|
327
|
+
# path_template - string - Template for creating submission subfolders. Can use the uploader's name, email address, ip, company, and any custom form data.
|
308
328
|
# permissions - string - Permissions that apply to Folders in this Share Link.
|
309
329
|
# preview_only - boolean - Restrict users to previewing files only?
|
310
330
|
# require_registration - boolean - Show a registration page that captures the downloader's name and email address?
|
@@ -329,6 +349,7 @@ module Files
|
|
329
349
|
raise InvalidParameterError.new("Bad parameter: inbox_id must be an Integer") if params[:inbox_id] and !params[:inbox_id].is_a?(Integer)
|
330
350
|
raise InvalidParameterError.new("Bad parameter: max_uses must be an Integer") if params[:max_uses] and !params[:max_uses].is_a?(Integer)
|
331
351
|
raise InvalidParameterError.new("Bad parameter: note must be an String") if params[:note] and !params[:note].is_a?(String)
|
352
|
+
raise InvalidParameterError.new("Bad parameter: path_template must be an String") if params[:path_template] and !params[:path_template].is_a?(String)
|
332
353
|
raise InvalidParameterError.new("Bad parameter: permissions must be an String") if params[:permissions] and !params[:permissions].is_a?(String)
|
333
354
|
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
334
355
|
|
@@ -411,11 +432,13 @@ module Files
|
|
411
432
|
# paths (required) - array(string) - A list of paths to include in this bundle.
|
412
433
|
# password - string - Password for this bundle.
|
413
434
|
# form_field_set_id - int64 - Id of Form Field Set to use with this bundle
|
435
|
+
# dont_separate_submissions_by_folder - boolean - Do not create subfolders for files uploaded to this share. Note: there are subtle security pitfalls with allowing anonymous uploads from multiple users to live in the same folder. We strongly discourage use of this option unless absolutely required.
|
414
436
|
# expires_at - string - Bundle expiration date/time
|
415
437
|
# max_uses - int64 - Maximum number of times bundle can be accessed
|
416
438
|
# description - string - Public description
|
417
439
|
# note - string - Bundle internal note
|
418
440
|
# code - string - Bundle code. This code forms the end part of the Public URL.
|
441
|
+
# path_template - string - Template for creating submission subfolders. Can use the uploader's name, email address, ip, company, and any custom form data.
|
419
442
|
# permissions - string - Permissions that apply to Folders in this Share Link.
|
420
443
|
# preview_only - boolean - Restrict users to previewing files only?
|
421
444
|
# require_registration - boolean - Show a registration page that captures the downloader's name and email address?
|
@@ -436,6 +459,7 @@ module Files
|
|
436
459
|
raise InvalidParameterError.new("Bad parameter: description must be an String") if params[:description] and !params[:description].is_a?(String)
|
437
460
|
raise InvalidParameterError.new("Bad parameter: note must be an String") if params[:note] and !params[:note].is_a?(String)
|
438
461
|
raise InvalidParameterError.new("Bad parameter: code must be an String") if params[:code] and !params[:code].is_a?(String)
|
462
|
+
raise InvalidParameterError.new("Bad parameter: path_template must be an String") if params[:path_template] and !params[:path_template].is_a?(String)
|
439
463
|
raise InvalidParameterError.new("Bad parameter: permissions must be an String") if params[:permissions] and !params[:permissions].is_a?(String)
|
440
464
|
raise InvalidParameterError.new("Bad parameter: clickwrap_id must be an Integer") if params[:clickwrap_id] and !params[:clickwrap_id].is_a?(Integer)
|
441
465
|
raise InvalidParameterError.new("Bad parameter: inbox_id must be an Integer") if params[:inbox_id] and !params[:inbox_id].is_a?(Integer)
|
@@ -471,10 +495,12 @@ module Files
|
|
471
495
|
# clickwrap_id - int64 - ID of the clickwrap to use with this bundle.
|
472
496
|
# code - string - Bundle code. This code forms the end part of the Public URL.
|
473
497
|
# description - string - Public description
|
498
|
+
# dont_separate_submissions_by_folder - boolean - Do not create subfolders for files uploaded to this share. Note: there are subtle security pitfalls with allowing anonymous uploads from multiple users to live in the same folder. We strongly discourage use of this option unless absolutely required.
|
474
499
|
# expires_at - string - Bundle expiration date/time
|
475
500
|
# inbox_id - int64 - ID of the associated inbox, if available.
|
476
501
|
# max_uses - int64 - Maximum number of times bundle can be accessed
|
477
502
|
# note - string - Bundle internal note
|
503
|
+
# path_template - string - Template for creating submission subfolders. Can use the uploader's name, email address, ip, company, and any custom form data.
|
478
504
|
# permissions - string - Permissions that apply to Folders in this Share Link.
|
479
505
|
# preview_only - boolean - Restrict users to previewing files only?
|
480
506
|
# require_registration - boolean - Show a registration page that captures the downloader's name and email address?
|
@@ -498,6 +524,7 @@ module Files
|
|
498
524
|
raise InvalidParameterError.new("Bad parameter: inbox_id must be an Integer") if params[:inbox_id] and !params[:inbox_id].is_a?(Integer)
|
499
525
|
raise InvalidParameterError.new("Bad parameter: max_uses must be an Integer") if params[:max_uses] and !params[:max_uses].is_a?(Integer)
|
500
526
|
raise InvalidParameterError.new("Bad parameter: note must be an String") if params[:note] and !params[:note].is_a?(String)
|
527
|
+
raise InvalidParameterError.new("Bad parameter: path_template must be an String") if params[:path_template] and !params[:path_template].is_a?(String)
|
501
528
|
raise InvalidParameterError.new("Bad parameter: permissions must be an String") if params[:permissions] and !params[:permissions].is_a?(String)
|
502
529
|
raise MissingParameterError.new("Parameter missing: id") unless params[:id]
|
503
530
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: files.com
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.300
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- files.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-10-
|
11
|
+
date: 2022-10-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|