Skip to main content
Solved

Uploading multiple files via drag and drop - Universal


Mark Leunissen
Captain
Forum|alt.badge.img+4

Hi,

 

I have been using the topic: Upload multiple files using the Universal GUI for drag and dropping files in my test environment. The test environment is hosted on Azure and uploaded the files to an azure storage. However, the Production environment is hosted on premise, therefore I wanted to test the drag and drop functionality on the acceptance environment (also hosted on premise). 

However, I can't get the drag and drop to work. I have changed the URL in the html to the right url. The HTML file is saved on the universal folder, same as the test environment. However, I just keep seeing the 'no preview available’. 

The file name column has a file upload control type to a file system storage location. Uploading and opening the files from the local storage works. 

 

Kind regards,

Mark

Best answer by Mark Leunissen

Hi Sebastiaan,

 

I figured the problem out. A file upload column was moved upwards in the table without my knowledge, therefore the preview for the ''drop bestanden hier..’ was not available.

 

Mark

View original
Did this topic help you find an answer to your question?

3 replies

Forum|alt.badge.img+1

Hi, Mark

Unfortunately, there are quite a lot of possible issues here.

  • Are you sure the actual record returns a file URL with the relative path to multi.html?
  • This also has to match the path where you installed it in the Universal folder. So if you added a subfolder under the Universal folder, that must be reflected in the path So my-subfolder/multi.html 
  • If you are in a browser, and go to https://acceptance.your.app/multi.html. Do you see the component? You should see the dashed square with ‘Drop files here or click to select’ 

 


Mark Leunissen
Captain
Forum|alt.badge.img+4

Hi Sebastiaan, 

 

The html weblink does work. It also has the universal map added in the link. Additionally, clicking the 'Bestandsnaam’ does open the correct file that is stored locally. So I know that the files are correctly reflecting the actually stored files.

 

The weird thing is, that there is 1 case that does show a preview for a document, but the document doesnt reflect a document for that case.
 

The URL is configured as follows. The document in the preview doesnt reflect the id 29 that is selected. Additionally, the html screen for dragging and dropping a file is not shown.dbo.get_server()+ '?company_id='+ cast(t1.company_id as varchar) + '&administration_id='+ cast(t1.administration_id as varchar) + '&cases_id='+ cast(t1.cases_id as varchar) 

I also have the drag and drop working for another screen, with the following url:
 

dbo.get_server()+ '?company_id='+ cast(t1.company_id as varchar) This screen does have a working preview for the drag and drop:

I dont really get why the first preview doesn't work when the set up is similar to the one for the 'klanten’ screen.

Any help would be appreciated.


Mark


Mark Leunissen
Captain
Forum|alt.badge.img+4

Hi Sebastiaan,

 

I figured the problem out. A file upload column was moved upwards in the table without my knowledge, therefore the preview for the ''drop bestanden hier..’ was not available.

 

Mark


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings