Aloha everyone,
I'm assisting a customer who is fighting with a website provided by the city government. The customer is an architect and the website is for submitting plans and drawings for permits. The software being run by the city is called ProjectDox.
The issue at hand is that when he tries to upload a "drawing", the window that opens to select the file(s) to upload is limited to .gif, .jpeg, .jpg, and .png file types. He's trying to upload a .pdf file. According to the system admins, uploading a pdf is permissible and the admins can do this with no problem, so the issue must be on the customer's machine. Note that if the customer wants to upload a "document", he can upload a pdf with no problem (you have to specify if you're uploading a document or drawing before you get the upload window).
We have tried 3 different machines in addition to my customer's machine, and all of them have the same problem. At this point, I think I've run into the "we can do it, so the problem MUST be on your computer".
Per a friend who speaks "website" better than I do I got the the window where you click 'Browse" to download the files and right-clicked and selected "View Source". Looking at the source, I searched on filetype and found a couple of references...
In Upload.js:
//*********************************************************************
// Sets a filter string that specifies the file types and descriptions to display in the OpenFileDialog.
// This filter string is also used during the drag and drop event for the control in that
// any file excluded using the filter cannot be dropped on the control itself....it will
// silently fail and not display any file in the list and will not display any validation messages.
//*********************************************************************
function SetFileTypeFilter(fileTypeFilter) {
silverlightControl.Content.uploadControl.SetFileTypeFilter(fileTypeFilter);
and in ActiveXUpload.aspx
//*********************************************************************
// Event called when the silverlight plugin is loaded.
//*********************************************************************
function pluginLoaded(sender) {
silverlightControl = sender.getHost();
SetTargetPhysicalFolder('%5c%5cDPPPDJOB%5cPDoxTemp%5c69377%5c9217a413-1cd4-4b53-906e-6ea6c4a513a1');
SetMaxFileCount(300);
SetMaxUploadFileSize(104857600);
SetMaxUploadSize(10737418240);
SetFileTypeFilter('.tif,.bmp,.dwf,.pdf,.dxf,.doc,.xls,.ppt,.jpg,.tiff,.png,.img,.bmp,.avi,.htm,.html,.mov,.wmv,.zip,.docx,.xlsx,.pptx,.PDF,.dwg,.dgn,.000,.3df,.906,.907,.bmp,.cal,.cg4,.cgm,.cit,.cmi,.dcx,.dgn,.dwf,.dwg,.dxf,.edc,.edm,.ftk,.g3,.g4,.gif,.gp4,.hpgl,.igs,.iso,.jpeg,.jpg,.mi,.mil,.mvs,.pcx,.pdf,.pln,.plt,.png,.prt,.rnl,.tif,.tiff,.install,.config,.mp4');
SetMaxFileNameLength(70);
After this I'm out of knowledge. If anyone could provide assistance, it would be greatly appreciated.
Mahalo,
Harry Z.
I'm assisting a customer who is fighting with a website provided by the city government. The customer is an architect and the website is for submitting plans and drawings for permits. The software being run by the city is called ProjectDox.
The issue at hand is that when he tries to upload a "drawing", the window that opens to select the file(s) to upload is limited to .gif, .jpeg, .jpg, and .png file types. He's trying to upload a .pdf file. According to the system admins, uploading a pdf is permissible and the admins can do this with no problem, so the issue must be on the customer's machine. Note that if the customer wants to upload a "document", he can upload a pdf with no problem (you have to specify if you're uploading a document or drawing before you get the upload window).
We have tried 3 different machines in addition to my customer's machine, and all of them have the same problem. At this point, I think I've run into the "we can do it, so the problem MUST be on your computer".
Per a friend who speaks "website" better than I do I got the the window where you click 'Browse" to download the files and right-clicked and selected "View Source". Looking at the source, I searched on filetype and found a couple of references...
In Upload.js:
//*********************************************************************
// Sets a filter string that specifies the file types and descriptions to display in the OpenFileDialog.
// This filter string is also used during the drag and drop event for the control in that
// any file excluded using the filter cannot be dropped on the control itself....it will
// silently fail and not display any file in the list and will not display any validation messages.
//*********************************************************************
function SetFileTypeFilter(fileTypeFilter) {
silverlightControl.Content.uploadControl.SetFileTypeFilter(fileTypeFilter);
and in ActiveXUpload.aspx
//*********************************************************************
// Event called when the silverlight plugin is loaded.
//*********************************************************************
function pluginLoaded(sender) {
silverlightControl = sender.getHost();
SetTargetPhysicalFolder('%5c%5cDPPPDJOB%5cPDoxTemp%5c69377%5c9217a413-1cd4-4b53-906e-6ea6c4a513a1');
SetMaxFileCount(300);
SetMaxUploadFileSize(104857600);
SetMaxUploadSize(10737418240);
SetFileTypeFilter('.tif,.bmp,.dwf,.pdf,.dxf,.doc,.xls,.ppt,.jpg,.tiff,.png,.img,.bmp,.avi,.htm,.html,.mov,.wmv,.zip,.docx,.xlsx,.pptx,.PDF,.dwg,.dgn,.000,.3df,.906,.907,.bmp,.cal,.cg4,.cgm,.cit,.cmi,.dcx,.dgn,.dwf,.dwg,.dxf,.edc,.edm,.ftk,.g3,.g4,.gif,.gp4,.hpgl,.igs,.iso,.jpeg,.jpg,.mi,.mil,.mvs,.pcx,.pdf,.pln,.plt,.png,.prt,.rnl,.tif,.tiff,.install,.config,.mp4');
SetMaxFileNameLength(70);
After this I'm out of knowledge. If anyone could provide assistance, it would be greatly appreciated.
Mahalo,
Harry Z.