Paste Zone for pasting screenshots inside Baserow

It’ll be great if we could have a feature to paste screenshots. I got it to work for me by editing UploadFileDropzone.vue .

      @change="$emit('input', $event)"
      :class="{ 'upload-files__dropzone--dragging': dragging }"
      @dragenter.prevent="dragging = true"
      @dragleave.prevent="dragging = false"
      <div class="upload-files__dropzone-content">
        <i class="upload-files__dropzone-icon fas fa-cloud-upload-alt"></i>
        <div class="upload-files__dropzone-text">
          <template v-if="dragging"
            >{{ $t('uploadFileUserFileUpload.drop') }}
          <template v-else>{{
    <div class="upload-files__paste-zone">
      <div class="upload-files__paste-zone-content">
        <span>{{ $t('uploadFileUserFileUpload.pasteZone') }}</span>

export default {
  name: 'UploadFileDropzone',
  data() {
    return {
      dragging: false,
  mounted() {
    window.addEventListener('paste', this.onPaste);
  beforeUnmount() {
    window.removeEventListener('paste', this.onPaste);
  methods: {
    onDrop(event) {
      this.dragging = false;
      this.$emit('input', event);
    onPaste(event) {
      if (event.clipboardData && event.clipboardData.items) {
        const items = event.clipboardData.items;
        const files = [];

        for (let i = 0; i < items.length; i++) {
          if (items[i].kind === 'file') {

        if (files.length > 0) {
          this.$emit('input', { target: { files } });

<style scoped>
.upload-files__paste-zone {
  border: 1px dashed #ccc;
  border-radius: 4px;
  padding: 15px;
  text-align: center;
  margin-top: 15px;

.upload-files__paste-zone-content {
  display: inline-block;
  vertical-align: middle;

.upload-files__paste-zone-content span {
  font-size: 18px;
  font-weight: bold;
  color: #666;
1 Like

Hello @computersrmyfriends, noted! Thanks for sharing your idea, I will discuss it with the team and get back to you afterwards :slightly_smiling_face:

Hello @computersrmyfriends, some updates on your idea — it’s possible to paste a screenshot directly into a cell, but you can’t paste a screenshot in the enlarged row. As you already wrote a code, would you mind making a merge request on GitLab with the changes and contributing this feature?

1 Like

@olgatrykush Thanks for the tip. I have now raised an issue plus sent a merge request. Hope that helps.


1 Like