forked from MarkBowenPiano/ninja-forms-uploads
-
Notifications
You must be signed in to change notification settings - Fork 1
/
readme.txt
395 lines (223 loc) · 10.6 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
=== Ninja Forms - File Uploads Extension ===
Contributors: kstover, jameslaws
Donate link: http://ninjaforms.com
Tags: form, forms
Requires at least: 1.0
Tested up to: 4.9
Stable tag: 3.0.8
License: GPLv2 or later
== Description ==
The Ninja Forms File Uploads Extension allows users to upload files. These files are stored in a database that can be browsed or searched by an administrator. Files can be downloaded or deleted by administrators as well.
== Installation ==
This section describes how to install the plugin and get it working.
1. Upload the `ninja-forms-uploads` directory to your `/wp-content/plugins/` directory
2. Activate the plugin through the 'Plugins' menu in WordPress
3. Visit the 'Forms' menu item in your admin sidebar
4. When you create a form, you can now add upload fields on the field edit page.
5. A "File Uploads" link will now appear underneath the main "Forms" admin menu.
== Use ==
For help and video tutorials, please visit our website: [NinjaForms.com](http://ninjaforms.com)
== Changelog ==
= 3.0.8 ( 26 June 2017) =
*Changes:*
* Supports Dropbox API v2
= 3.0.7 ( 5 June 2017) =
*Bugs:*
* Amazon S3 uploads unable to use bucket in newer regions
* File not deleted from server when File Upload deleted in admin
* All File Uploads fields on form used the same nonce
* NF 2.9 submissions not displaying in admin
* File Upload field CSS too generic causing clashes with themes
* PHP notice on uploads table when submission from non-logged in user
* All Fields mergetag not using external URL
* Missing mergetag variations used for Post Creation
* Similar file extensions allowed even when not on file type whitelist for field
= 3.0.6 (12 April 2017) =
*Bugs:*
* Fixed the description text for custom file upload paths.
* Fixed PHP warnings related to uploading a file to a remote server.
* Links to uploaded files should now always show properly.
* Fixed a bug that could cause unexpected output when displaying a form.
= 3.0.5 (07 December 2016) =
*Bugs:*
* Fixed a bug that could cause file upload fields to fail with Ninja Forms versions > 3.0.17.
= 3.0.4 (3 November 2016) =
*Bugs:*
* Fixed a bug with the Max File Upload Size setting.
* Whitelisting file types should now work as explained in the help text.
* File names can now be based upon the values of other fields using merge tags.
*Changes:*
* Added missing help text to the admin.
= 3.0.3 (28 September 2016) =
*Bugs:*
* File Uploads should now show in Conditional Logic conditions.
= 3.0.2 (09 September 2016) =
* Update to 3.0.2
*Bugs:*
* Fixed SQL format that breaks dbdelta.
* Fixed Dropbox case sensitive issues.
* Fixed Multiple file selection bug.
* Fixed a bug with uploading .jpg files.
= 3.0.1 (06 September 2016) =
* Updated with Ninja Forms v3.x compatibility
= 3.0 (06 September 2016) =
* Updated with Ninja Forms v3.x compatibility
* Deprecated Ninja Forms v2.9.x compatible code
= 1.4.9 (09 May 2016) =
*Bugs:*
* Fixed a bug where duplicate file names could cause the extension to be changed. Credit to "fruh of citadelo" for reporting the security vulnerability.
= 1.4.8 (29 March 2016) =
*Bugs:*
* Fixed a bug with Dropbox that could cause uploading to Dropbox to fail.
= 1.4.7 (20 September 2015) =
*Bugs:*
* Fixed a bug related to buckets in Amazon S3.
* Improved how URLs are handled when saving submissions.
= 1.4.6 (24 August 2015) =
*Bugs:*
* Fixed an issue with connecting to Amazon accounts.
* Fixed several PHP notices that appeared on the uploads settings page.
= 1.4.5 (12 May 2015) =
*Bugs:*
* Featured images in the Post Creation extension should now function properly.
* Save Progress extension tables should now show File Upload fields properly.
= 1.4.4 (26 March 2015) =
*Bugs:*
* Multiple file uploads should work properly with external services.
* Fixed several PHP notices.
= 1.4.3 (12 January 2015) =
*Bugs:*
* Fixed a bug that could cause Dropbox to disconnect.
* Fixed a bug with multi-file uploads that could cause the wrong URL to be stored in the file uploads table.
* Fixed a PHP notice.
= 1.4.2 (9 December 2014) =
*Bugs:*
* Fixed a bug with PHP v5.6 and Dropbox uploads.
* Fixed a bug that caused file renaming to work incorrectly.
*Changes:*
* Added a new upload location of none, where files get removed after upload.
= 1.4.1 (17 November 2014) =
*Bugs*
* Fixed a bug caused by a bad commit in the previous version.
= 1.4 (17 November 2014) =
*Bugs:*
* Fixed two PHP notices.
*Changes:*
* Added filter for filename $file_name = apply_filters( 'nf_fu_filename' , $filename );
* The maximum file upload size can now not exceed the server PHP setting for max file uploads.
= 1.3.8 (15 September 2014 ) =
*Changes:*
* File Uploads should now be compatible with Ninja Forms version 2.8 and the new notification system.
* Performance should be noticeably increased.
= 1.3.7 (12 August 2014 ) =
*Bugs:*
* Fixed a bug with viewing files in the edit sub page.
= 1.3.6 (12 August 2014) =
*Bugs:*
* Fixing a bug with file exports and version 2.7+ of Ninja Forms.
* Fixed translation issues.
*Changes:*
* Added new .pot file.
= 1.3.5 (24 July 2014) =
*Changes:*
* Compatibility with Ninja Forms 2.7.
= 1.3.4 =
*Bugs:*
* Making sure the external upload doesn't fire if there is no file uploaded
= 1.3.3 =
*Bugs:*
* Fixed a bug with Dropbox that could cause file uploads to be sluggish.
* is_dir() and mkdir() warnings should be cleared up.
* Multi-file upload fields should now clear correctly when a form is submitted.
= 1.3.2 =
*Bugs:*
* Fixed a bug that could cause the plugin not to activate on some systems.
= 1.3.1 =
*Bugs:*
* The extension should now properly activate on all PHP versions.
= 1.3 =
*Features:*
* You can now store uploaded files in Dropbox or Amazon S3! Simply select the storage location on a per-upload-field basis.
*Bugs:*
* Fixed a PHP notice.
* Fixed a bug that could cause some installations to lose the ninja-forms/tmp/ directory.
= 1.2 =
*Bugs:*
* Fixed a bug that prevented required file uploads from being validated when using AJAX submissions.
* Fixed some php notices.
*Changes:*
* Added support for the new Ninja Forms loading class.
* Editing a submission from the wp-admin that includes a file will now show a link to that file instead of just the filename.
= 1.1 =
*Changes:*
* The format of date searching in the Browse Files tab will now be based upon the date format in Plugin Settings. i.e. you can now search dd/mm/yyyy.
* Added the option to name a directory/file with %userid%.
*Bugs:*
* Fixed a bug that caused file upload fields to load multiple instances or open with pre-filled, incorrect data.
= 1.0.11 =
*Changes:*
* Added a filter so that when a user uploads a file, they don't see the directory to which it was uploaded in their email.
= 1.0.10 =
*Changes:*
* Changed the license and auto-update system to the one available in Ninja Forms 2.2.47.
= 1.0.9 =
*Bugs:*
* Fixed a bug that could cause files to be added to the media library twice when used with the Post Creation extension.
= 1.0.8 =
*Changes:*
* Changed references to wpninjas.com to the new ninjaforms.com.
= 1.0.7 =
*Bugs:*
* Fixed a bug that prevented files from being emailed as attachments in multi-part forms.
= 1.0.6 =
*Changes:*
* Updates for compatibility with WordPress 3.6
= 1.0.5 =
*Bugs:*
* Fixed a bug that prevented Uploads from working properly with AJAX forms.
* Fixed a bug that prevented Uploads from working properly when they were set to required.
= 1.0.4 =
*Changes:*
* Added a filter so that File Uploads will work properly with the confirmation page option of Multi-Part Forms.
= 1.0.3 =
*Changes:*
* Changed the way that file uploads with duplicate names are handled. In previous versions, the new file would simply replace the older file with the same name; now, if a file already exists with the same name as an upload, the upload is renamed with a sequential number. e.g. my-file.jpg -> my-file-001.jpg -> my-file-002.jpg -> etc.
* Added an option to add files to the WordPress Media Library. On each file upload field, you'll find this new option.
* Added three new file renaming options: %displayname%, %firstname%, %lastname%. Each of these will be replaced with the appropriate user information.
* Added a new filter named: ninja_forms_uploads_dir. This filter can be used to modify the location Ninja Forms uploads files.
*Bugs:*
* Fixed a bug that could cause some files from uploading properly.
= 1.0.2 =
*Changes:*
* Added a new option to the [ninja_forms_field id=] shortcode. You can now use [ninja_forms_field id=2 method=url]. This will return just the url of the file. For example, you can now do something like this: <img src="[ninja_forms_field id=2 method=url]">.
= 1.0.1 =
*Changes:*
* Modified the way that the pre-processing is handled for more effeciency.
= 1.0 =
*Bugs:*
* Fixed a bug that prevented files from being replaced on the backend.
= 0.9 =
*Bugs:*
* Fixed a bug that prevented files from being replaced when editing user submissions.
= 0.8 =
*Features:*
* Added the ability to search for file uploads by User ID, User email, or User login.
= 0.7 =
* Updated code formatting.
= 0.6 =
* Fixed a bug that was causing the new [ninja_forms_field id=3] shortcode to fail when used in conjunction with the Uploads Extension.
= 0.5 =
* Changed the upload directory to the built-in WordPress uploads directory. This should help limit the cases of users not being able to upload files because of directory restrictions. Old files have not been moved over because it would be impossible to correctly fix links to new locations.
* Fixed a bug that was causing some users to lose their upload record when they deactivated and reactivated the plugin.
* Errors should now show properly for files that are over the file size limit set in the plugin settings.
= 0.4 =
* Various bug fixes including:
* A bug that prevented files from being moved to the proper directory.
* A bug that prevented the "update file" link from working on pages that already had a file uploaded.
* A bug that prevented the "featured image" functionality from working properly.
* Added a new setting to the upload settings page for file upload URLs.
= 0.3 =
* Various bug fixes.
= 0.2 =
* Various bug fixes.
* Changed the way that javascript and css files are loaded in extensions.