mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-3288] Removed restrictions from upload version button docs (#3578)
This commit is contained in:
committed by
Eugenio Romano
parent
b54ec57033
commit
d7a56c655b
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user