[ADF-3288] Removed restrictions from upload version button docs (#3578)

This commit is contained in:
Andy Stark
2018-07-10 17:23:15 +01:00
committed by Eugenio Romano
parent b54ec57033
commit d7a56c655b

View File

@@ -24,11 +24,6 @@ to enrich the features and decrease the restrictions currently applied to node v
</adf-upload-version-button>
```
This component extends the [Upload Button component](upload-button.component.md). The
properties and events are the same except for the `node` property that specifies the node
to be versioned (this is a _required_ input parameter). However, some properties don't make
sense when applied to the [Upload Version Button component,](../content-services/upload-version-button.component.md) so they are simply ignored.
## Class members
### Properties
@@ -61,19 +56,10 @@ sense when applied to the [Upload Version Button component,](../content-services
## Details
### Restrictions
Currently, the API only allows new version uploads for a node where the name
(and most importantly the _extension_) of the new version
is exactly the same as the old version. As a result, this workaround component uploads the
chosen file with the same name that the original file had. This is the reason why the `node`
is a mandatory dependency for this component.
So, to sum up, this component:
- **Can** upload a new version from the same file extension regardless of the file name.
- **Cannot** upload a new version that has a different file extension, to the file that was
originally uploaded (an error message will be emitted by the `error` [`EventEmitter`](https://angular.io/api/core/EventEmitter) of the component.
This component extends the [Upload Button component](upload-button.component.md). The
properties and events are the same except for the `node` property that specifies the node
to be versioned (this is a _required_ input parameter). However, some properties don't make
sense when applied to the [Upload Version Button component,](../content-services/upload-version-button.component.md) so they are simply ignored.
## See also