Loading...
 
Skip to main content

Features / Usability


Tracker Files field creating duplicate uploads

posts: 72 United States

I have a tracker set up to upload files (office documents, forms, word, excel, pdf, etc.) for a document control application, but I'm getting duplicate files when I upload the files.

I'm on Tiki9.6, and I'm using Tracker and TrackerList plugins. Here is what the page looks like.

Forms Input And List

Here's the code:

Copy to clipboard
!!-Add a New Form {TRACKER(trackerId=>5, showtitle=n, showmandatory=n, showdesc=n, fields=>44:41:42:43:45:46:47:48:49:50, wiki="Forms Tracker TPL")}Thank you for submitting. Your form will be available once approved by Quality Systems Manager.{TRACKER} !!-Form List {TRACKERLIST(trackerId=>5, fields=>40:41:42:43:45:46:47:48:49:50, showlinks=>y, showdesc=>n, showstatus=>n, status=>o, )} {TRACKERLIST}


Any time my users create a new office form (old-school paper form, print it, fill it out, file it, etc), the document owner must upload a master copy through this page. From here we keep a master list (Form List) and identify relevant info associated with the form (Owner, rev date, users, etc).

The issue in more detail
When a user uploads a new form a duplicate copy is uploaded unintentionally, saved in the file gallery, and attached to the tracker item. This creates a mess, wastes server space, and makes the system unusable.

Here is a file being added. Note that the tracker only shows 1 file (6bytes.txt).
Forms Upload Showing 1 File

After clicking save there are now 2 files:

In the gallery
Forms Gallery Showing Duplicates
Tracker view items
Forms Tracker View Items Showing Duplica
Tracker item edit
Forms Tracker Edit Item Showing Duplicat

Any ideas on what is causing these duplicates and how to prevent them?

All users are on IE10 (must use IE per corp IT rules, and need IE10 to use Files field type for HTML5 drag-n-drop.).

I've tried setting the 'File Count' setting from 0 to 1 for the Files field to limit the maximum number of files to be attached on the field, but this had no affect.

Files uploaded directly through the gallery do not have this issue.

posts: 72 United States
Anyone?

posts: 215

Here is something to try. Temporarily remove the second tracker plugin from the page, upload a file, and see if you get a duplicate.

Tom


posts: 72 United States

Thanks for chiming in Tom! I actually only have one TRACKER plugin on the page. The others are TRACKERLIST, and TRACKERFILTER. I did try removing them are the issue is still there; duplicate files are uploaded.

I've continued to troubleshoot and have narrowed the issue down to Drag-n-Drop vs. Browse for the file, and only with IE browser.

Browse = Duplicate
Drag-n-Drop = No Duplicate


This issue is isolated to IE10 users ('files' field won't work at all before IE10). Works fine with Chrome and Firefox, but any time a user browses for a file using IE10 a duplicate file is uploaded.

Unfortunately, my organization only supports IE. Some smart users have installed Chrome or FF, but 98% use IE.

Would this be a Tiki bug or an issue with IE10?


posts: 215

I know that they were different tracker plugins, but I figured they probably shared some functions, and they all get executed each time the page generates. Plugins often pass data using session variables and if two plugins accessed the same session variable, there could be some problems. But your testing with just the one tracker plugin appears to have ruled that out.

I did some searching on IE10 and "File Selection" and there are others that are having problems with file selection, but I don't find any mentioning getting duplicate files. Have you tried using the browser compatibility option to see if it you still get duplicates?


posts: 72 United States

Thanks again for your help Tom. I tried compatibility mode with IE10, but still having the same issues with duplicate files.

It gives me a little hope that others are not reporting this issue, but I'm still at a lose for how to fix this one.


posts: 215

Using Tiki 9.7svn I made a simple tracker with one "Files" field. Using IE10, I uploaded a file and duplicate files were uploaded to the File Gallery. Using Chrome and uploading a file, there was only the single file added to the File Gallery, no duplicate file.

I also tested this on demo.tiki.org 10x (11x does not appear to be available right now). Using IE10 it also uploaded a duplicate file. And again, using Chrome there was only the single file uploaded.

In both the 9.7svn and the demo 10x, only one of the two files show up in the tracker Items list, but oddly, on 9.7svn the file in the tracker is the first of the two files uploaded. And on demo 10x, the tracker Items list shows the second of the two files uploaded. I only did one upload each with IE10 and Chrome on each of the tests, so that is not enough testing to say if it is always the first or second file to be recorded in the tracker.


posts: 72 United States

Thanks for testing Tom. Good to know it is not specific to just my Tiki install/environment.

Looks like this is a bug.

Any idea who developed this feature? I may be able to support a fix as opposed to just submitting a bug and hoping for a fix to come along.


posts: 215

The Tracked "Files" option is not working correctly in IE, Chrome, Opera, or Firefox.

This time I used Tiki 11.1svn.

Simple tracker, with one field, "Files" type.

Testing with IE 10:
Starting with an empty tracker and an empty file gallery.
Select the tracker. Select the "Insert New Item". Select "Browse" and browse to file, highlight it, and click on Open.
The file is immediately added to the File Gallery, before you click "Save" for the tracker item.
If you abandon the tracker item insert, the file stays in the file gallery, and the tracker stays empty.

Testing with Chrome:
Starting with an empty tracker and an empty file gallery.
Select the tracker. Select the "Insert New Item". Select "Choose Files" and browse to file, highlight it, and click on Open.
The file is immediately added to the File Gallery, before you click "Save" for the tracker item.
If you abandon the tracker item insert, the file stays in the file gallery, and the tracker stays empty.

Testing with Opera
Starting with an empty tracker and an empty file gallery.
Select the tracker. Select the "Insert New Item". Select "Add files" and browse to file, highlight it, and click on Open.
The file is immediately added to the File Gallery, before you click "Save" for the tracker item.
If you abandon the tracker item insert, the file stays in the file gallery, and the tracker stays empty.


Testing with Firefox:
Starting with an empty tracker and an empty file gallery.
Select the tracker. Select the "Insert New Item". Select "Browse" and browse to file, highlight it, and click on Open.
The file is immediately added to the File Gallery, before you click "Save" for the tracker item.
If you abandon the tracker item insert, the file stays in the file gallery, and the tracker stays empty.


When you do use the "Save" option for the tracker item, when using IE, the file is added to the File Gallery a second time, but with the other browsers, the file is not added to the File Gallery for the second time.

I would think that the file should NOT be added to the file Gallery when it is selected, but only AFTER the tracker Item save is selected.


posts: 72 United States

My findings are the same as what you describe, and I agree that the file should only be added to the gallery when you click save.

If a user abandons the tracker item the file should not remain in the gallery. This only leads to orphan files in the gallery which are not linked to a tracker item.


posts: 72 United States
Just an update; I'm working with a Tiki developer to fix these issues. Looks like the fixes will be incorporated into Tiki12.