OpenDataNode / UVPlugin-filesToCKAN

GNU Lesser General Public License v3.0
0 stars 0 forks source link

Changing file names to CKAN resource names #13

Open jindrichmynarz opened 9 years ago

jindrichmynarz commented 9 years ago

If I enable the "Use file name as CKAN resource name" option, and send it a file named SK_CODELIST_0024_STD.zip, then it loads the file as SKCODELIST0024STD.zip (underscores removed). Is this done to prevent some invalid characters? Is it done by the DPU or CKAN?

If it is possible, it would be better to use an unchanged name.

Context: I have come across this issue in ODN 1.1.0.

ghost commented 9 years ago

The attachment is sent using HTTP multipart with part headers:

Content-Disposition: form-data; name="upload"; filename="SK_CODELIST_0024_STD.zip"
Content-Type: application/octet-stream
Content-Transfer-Encoding: binary

so from UV/rdfToCkan side it is OK. The name is mangled inside CKAN.

ghost commented 9 years ago

I have also tried manual upload of the file into CKAN (dataset>resource>manage, X on link, upload button, select file with _, update resource). Same mangling happened.

skrchnavy commented 9 years ago

@mvi-eea-sk what component is mangling the names? This shall be reported there if it is bug, or we have to document it as a feature in documentation of DPUs.