Author Topic: File Upload example?  (Read 1809 times)

tinblue

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 1
    • View Profile
File Upload example?
« on: September 17, 2021, 06:39:28 pm »
Is there not an example anywhere of uploading a file into a grid row?

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: File Upload example?
« Reply #1 on: September 20, 2021, 10:07:49 am »
Excel ( xlsx ) and csv files can be uploaded and imported into the grid.

Example: https://paramquery.com/pro/demos/import-xlsx

hyh888

  • Pro Enterprise
  • Full Member
  • *
  • Posts: 142
    • View Profile
Re: File Upload example?
« Reply #2 on: October 12, 2021, 01:41:34 pm »
In this example(Example: https://paramquery.com/pro/demos/import-xlsx),upload button is on toolbar. Is there an example which can upload file in cells? Sometime there is a need to upload photo into a cell and the picture is not enabled to  be dragged and dropped into other cell.
« Last Edit: October 12, 2021, 01:44:38 pm by hyh888 »

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: File Upload example?
« Reply #3 on: October 12, 2021, 10:53:13 pm »
In the same example, there is an image upload button. First select the cell, then add/upload image to that cell.

As of now, drag and drop of images can't be disabled.

hyh888

  • Pro Enterprise
  • Full Member
  • *
  • Posts: 142
    • View Profile
Re: File Upload example?
« Reply #4 on: October 13, 2021, 06:19:21 am »
I tried the img-upload button, and it really makes trouble for that the uploaded picture can be dragged to anywhere. It is not upload-to-a-cell, it's uploaded-to-the-table. Can you add the feature of  uploading-pic-to- cell and the linkage of the picture can be stored in the attribute of the cell?  Here is an example from jspreadsheet's open-source version with the hoped feature--   https://bossanova.uk/jspreadsheet/v4/examples/image-upload. This is its github linkage:https://github.com/jspreadsheet/ce.

hyh888

  • Pro Enterprise
  • Full Member
  • *
  • Posts: 142
    • View Profile
Re: File Upload example?
« Reply #5 on: October 13, 2021, 06:26:25 am »
The file-upload and picture-upload function should belong to cell or column( instead of only for table), it will make pqGrid more powerful.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: File Upload example?
« Reply #6 on: October 13, 2021, 11:28:48 am »
I agree with with you, thanks for your feedback, upload image to cell would be added to one of the next upcoming versions.