Commit graph

1235 commits

Author SHA1 Message Date
ifedapoolarewaju
bfd5d217fe
companion: fix test 2020-03-23 12:32:59 +01:00
ifedapoolarewaju
1e5e54bc9d
companion: add support to download gsuite (google docs, google sreadsheet) files 2020-03-19 16:30:47 +01:00
Ifedapo .A. Olarewaju
fdd7efc9fa
Merge pull request #2139 from transloadit/send-back-download-error
companion: emit error to client if download fails
2020-03-16 16:32:41 +01:00
ifedapoolarewaju
fdc065fe51
companion: emit error to client if download fails 2020-03-16 16:11:53 +01:00
Renée Kooi
ab3d7cb067
react: fix typescript proptypes for DashboardModal, fixes #2124 (#2136) 2020-03-16 15:22:03 +01:00
Renée Kooi
0aa511a476
core: add typings for setOptions(). (#2135)
* core: add typings for `setOptions()`.

* core: add typings test for plugin#setOptions
2020-03-16 14:11:56 +01:00
Renée Kooi
849b12a655
companion: drop parallel down/upload for S3 multipart (#2114)
* companion: drop parallel down/upload for S3 multipart

We were not ending the `fs-tail-stream` correctly. `fs-tail-stream` is
also not a battle-tested package and relying on file watching is never a
fun time, so it's better if we can avoid it entirely.

One good way to do that is to axe the entire parallel download/upload
feature, and instead download files in full before uploading them, like
we do for Tus and XHR :)

Fixes #1457.

* companion: add back the multiple start calls test
2020-03-16 13:09:33 +01:00
Artur Paikin
9a610f1204 Publish
- uppy@1.10.1
 - @uppy/facebook@1.0.0
2020-03-11 23:54:00 +01:00
Artur Paikin
2664a59450 Release 2020-03-11 21:50:23 +01:00
Ifedapo .A. Olarewaju
a59e8483b0
companion: don't log redundant errors in production (#2112)
* companion: don't log redundant errors in production

cc @kvz

* companion: remove redundant condition

* companion: if the error is a URIError from the requested URL we only log the error message
2020-03-11 13:00:38 +01:00
Ifedapo .A. Olarewaju
62c48408ba
companion: return 401 early if token is not set (#2118) 2020-03-10 16:34:20 +01:00
Renée Kooi
0e02d2a495
companion: pass endpoint and region to AWS SDK constructor (#2113)
Accidentally removed in #2030. This can cause S3 to reject uploads.
2020-03-09 13:56:31 +01:00
Jason Bosco
b40934a90c
Allow S3 ACL to be specified in Companion Standalone (#2111) 2020-03-09 10:43:16 +01:00
Renée Kooi
d191703595
companion: allow providing any S3 option, closes #1388 (#2030)
* companion: allow providing any S3 option, closes #1388

Now you can configure any S3 option listed in
https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/S3.html#constructor-property.

It adds a warning about the official S3 names `accessKeyId` and
`secretAccessKey` because you should use the Companion-style names `key`
and `secret` instead.

* companion: use awsClientOptions property for Aws SDK config

* companion: also reject keys inside awsClientOptions

* should keep the checks next to each other

* companion: first check if awsClientOptions isnt null
2020-03-04 14:01:59 +01:00
ifedapoolarewaju
7bfc3e7e5f
Release 2020-02-28 12:15:39 +01:00
ifedapoolarewaju
b59d5b4fb6
companion: use state in session in tests 2020-02-27 18:45:12 +01:00
ifedapoolarewaju
7fc4490bb8
companion: read state from session in oauth-redirect controller 2020-02-27 17:28:30 +01:00
ifedapoolarewaju
ca37f093fe
Release 2020-02-27 13:45:01 +01:00
ifedapoolarewaju
9b17cf2037
companion: return the right httpAgent when protocol value contains ":" 2020-02-27 12:58:48 +01:00
Felipe Gallinari
2f01b49edc
locales: fix pluralization in pt_BR (#2093) 2020-02-26 13:14:19 +01:00
ifedapoolarewaju
b20bc7e1f1
Release 2020-02-26 10:41:36 +01:00
Ifedapo .A. Olarewaju
d98384989f
Merge pull request #2083 from transloadit/validate-url
companion: add stronger validation for urls sent via URL plugin
2020-02-25 12:51:30 +01:00
ifedapoolarewaju
9355c1e313
test: fix truthy check 2020-02-25 12:33:27 +01:00
ifedapoolarewaju
f69e1b1203
test: improve test conditions for IP blocker 2020-02-25 12:12:51 +01:00
ifedapoolarewaju
9a3e27855d
companion: add tests for private IPs blocker 2020-02-25 11:49:29 +01:00
Renée Kooi
191ab53846
companion: use same ts version for deploy 2020-02-24 16:00:09 +01:00
Andy Chong
59bfaf0d20
react/drag-drop: add a type test and document shared props (#2003)
* Update react-dragdrop.md

DragDrop component only accept `uppy` and `locale` props according to the type declared.
```
import { Uppy, Locale } from './CommonTypes';

export interface DragDropProps {
  uppy: Uppy;
  locale?: Locale;
}

/**
 * React component that renders an area in which files can be dropped to be
 * uploaded.
 */
declare const DragDrop: React.ComponentType<DragDropProps>;
export default DragDrop;```

* drag-drop: accept a number for width/height

* docs: add back dragdrop props

* docs: use the same option style as previously [skip ci]

Co-authored-by: Renée Kooi <renee@kooi.me>
2020-02-24 15:13:01 +01:00
Cellvin Chung
6e869a2fc1
Update zh_TW.js (#2075)
* Update zh_TW.js

improved translation quality

* Update packages/@uppy/locales/src/zh_TW.js

* npx eslint --fix

Co-authored-by: Artur Paikin <artur@arturpaikin.com>
Co-authored-by: Renée Kooi <renee@kooi.me>
2020-02-24 14:06:01 +01:00
Adam Elmore
513f2f8611
make s3 signed url expiry configurable in companion (#2085)
* make s3 signed url expiry configurable in companion

* add 'expires' option to the companion docs
2020-02-24 11:16:04 +01:00
ifedapoolarewaju
d50dd2a324
chore: use transloadit.com in tests 2020-02-24 09:41:14 +01:00
ifedapoolarewaju
aa1fa38718
companion: allow ip addresses and redirects, but validate against private IPs 2020-02-24 01:33:34 +01:00
ifedapoolarewaju
4aeef4dac0
companion: validate URL ip address via dns lookup 2020-02-20 14:02:19 +01:00
SpazzMarticus
9dfda7593d
Locale DE_de added new keys. (#2084)
Added keys are `noDuplicates` and `noNewAlreadyUploading`
2020-02-19 15:22:35 +01:00
ifedapoolarewaju
924482a7ae
companion: only validate URL for FQDN when debug is off 2020-02-19 11:30:30 +01:00
ifedapoolarewaju
35d51b5d12
companion: add stronger validation for urls sent via URL plugin 2020-02-19 11:16:56 +01:00
Naveed Ahmad
dd3f72aef3
Fix#2071 Check the availability isTypeSupported api before call… (#2072)
* Check the availability isTypeSupported api before calling.

This will fix #2071

* Run `eslint --fix`

Co-authored-by: Renée Kooi <renee@kooi.me>
2020-02-17 12:26:03 +01:00
Artur Paikin
2c98271103 Release 2020-02-14 23:17:48 +01:00
Ifedapo .A. Olarewaju
643305605c
Merge pull request #2055 from transloadit/conditional-cookie
companion: only set cookies for providers that need it
2020-02-13 11:08:19 +01:00
Renée Kooi
be66c47deb
Actually check types (#1918)
* types: stronger typings

* Remove remaining `declare module` things for uppy.use

* Format types standard-style-like

* Add `target` properties to plugin typings

* Add type for `replaceTargetContent` option

* xhr-upload: allow lowercase method

* opt in to stricter typechecks

* use the strictly typed version in all typings tests

* endtoend: use strict types in typescript test

* Add some comments to the typings file so IDEs will warn about untyped use()

* informer: remove obsolete option from typings

* react: generate prop types based on actual options types

* react: update types

* react: fix import in typings test

* companion-client: add `pluginId` property to ProviderOptions type

Co-Authored-By: Ifedapo .A. Olarewaju <ifedapoolarewaju@gmail.com>

* core: remove some `any` types

* *: add locale string types

* *: generate locale typings

* core: fix LocaleStrings<> type

* dashboard: add locale string type tests

* tus: inherit options typings from tus-js-client

* transloadit: add missing options types

* ci: do the required build steps before testing typings

* Support TokenStorage in types, add `title?: string` options

* form: update typings

* types: put TokenStorage type in dependents

* Document Uppy.StrictTypes

* if we pin at least we should use the latest

* Allow document.querySelector

I think it's a eslint-plugin-compat bug that it's marking querySelector
as not available in Android Chrome 78.

Co-authored-by: Ifedapo .A. Olarewaju <ifedapoolarewaju@gmail.com>
2020-02-12 16:22:09 +01:00
Renée Kooi
d7b92cc04e
Merge branch 'master' into conditional-cookie 2020-02-12 14:54:40 +01:00
Artur Paikin
07e9909bfc Release 2020-02-12 12:24:41 +01:00
Ifedapo .A. Olarewaju
6d4272f4b0
Merge pull request #2053 from transloadit/provider-errors
companion: return  more accurate error status codes
2020-02-12 12:04:39 +01:00
Artur Paikin
77ef346cb0 Release 2020-02-11 21:17:04 +01:00
Artur Paikin
856243a149
core, transloadit: Allow new uploads when retrying; improve error handling (#1960)
* Set `allowNewUpload: true` when an error occurs to allow retryAll

* Add assembly error message and assembly_id

* Pass debug option to Robodog

* Add forceAllowNewUpload to use in retry and retryAll, improve calls to _showOrLogErrorAndThrow

* Capitalize Create Assembly message

* don’t throw error from 'upload-error' event,  improved error message structure

* handle errors better

* check if error.details exists

* Doc tweaks: added error.assembly
2020-02-11 17:06:33 +01:00
Artur Paikin
d0f181caeb
core: Add noNewAlreadyUploading and noDuplicates (#2057)
* Add noNewAlreadyUploading and noDuplicates

* Update en_US.js

* fix test

* Update index.js

* Update en_US.js
2020-02-10 14:54:40 +01:00
Artur Paikin
013f5958d2 add tsv and tab (#2056) 2020-02-08 16:25:47 +03:00
ifedapoolarewaju
c0c5b3edfb
companion: fix tests 2020-02-06 15:57:22 +01:00
ifedapoolarewaju
deec61bc4e
comments corrected 2020-02-06 15:38:02 +01:00
ifedapoolarewaju
cde05cbb31
companion: only set cookies for providers that need it
fixes #1967
2020-02-06 15:32:14 +01:00
Artur Paikin
44cc071471
informer, status-bar: Display a browser alert when an error question mark button is clicked (#2031)
* Display a browser alrert when an error question mark button is clicked

Informer can dissappear, while the alert dialog will stay on screen indefinitely. Plus it’s easier to copy/paste from the alert, than the bubble (virtually impossible).

* Keep displaying Informer when the message ? bubble is hovered

* Tweak line-height
2020-02-05 15:54:56 +03:00