nextcloud-libraries / nextcloud-libraries/nextcloud-vue
Allow input type file for NcActionInput
Nobody has claimed this yet.
- Dominant language
- Vue
- Stars
- 246
- Forks
- 99
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 103
Description
I want to make an app that does some preprocessing on files before uploading to Nextcloud. For this, I need a file input. However, the NcActionInput does not support type=file :
<NcActionInput
type="file"
accept=".csv"
@submit="$emit('upload-file', $event)">
<template #icon>
<UpIcon />
</template>
</NcActionInput>
<script>
import NcActionInput from '@nextcloud/vue/dist/Components/NcActionInput.js'
import UpIcon from 'vue-material-design-icons/ArrowUpThin.vue'
</script>
I would be happy to PR if people think it is a good idea
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the NcActionInput component and compare its current behavior with the component documentation linked in the issue. Trace how the type and accept values reach the underlying input and how submit emits its event. Done means a file input can accept the requested file types and emit the selected file through upload-file.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100