NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: Alberto on March 04, 2020, 09:59:49 AM
-
Hi, trying to use FileUpload with *.csv files does not work.
Ive tryed using '*.csv' and 'csv' and nothing.
Please see pics
-
'csv' would be the right thing to choose.
This doesn't affect the lookup dialog, it only limits the files that will actually be uploaded.
Incidentally notice how your screen and file selection is different to the example? suggests maybe you are missing CSS or JS or something.
cheers
Bruce
-
'csv' would be the right thing to choose.
This doesn't affect the lookup dialog, it only limits the files that will actually be uploaded.
even if I set 'csv' I can upload any file without any warning or limit.
-
post an example showing the effect, and I'll take a look.
cheers
Bruce
-
Attached goes example 72 (Progress) modified to show the problem and...
please let me know how to inform the user how went the import procedure, that is at the end of the import proc I need to inform of errors and so on.
Thanks
-
Regarding the CSv, I went to the docs to see what it said;
Accept Files of Type
--------------------
Tick on the options you want to support for file uploading. The user is still able to upload any file they like, but this setting gives the browser some clues as to which files are desirable and may filter the File Dialog to these options. Built-in common types are Audio, Video, Image, PDF and ZIP. This is also a Custom field which can contain a comma separated list of acceptable mime types. You can also use a .xxx extension (and hence a comma separated list of extensions) here. For example '.doc,.xls'
so it should be '.csv' not 'csv'
>> please let me know how to inform the user how went the import procedure, that is at the end of the import proc I need to inform of errors and so on.
Couple of options, but the easiest is to
a) put a DISPLAY field on the form. Set this to a field called say ImportResult.
b) At the end of ProcessMakefile do a SetSessionValue('ImportResult','Whatever you want to say')
Cheers
Bruce