nextcloud-libraries / nextcloud-libraries/nextcloud-vue

Allow input type file for NcActionInput

Open
#4,339 3 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

0. to triage feature: actions
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>

image
image

I would be happy to PR if people think it is a good idea

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.