Skip to content
This repository has been archived by the owner on Jul 19, 2023. It is now read-only.

Long filenames break upload #80

Open
meilinger opened this issue Dec 20, 2016 · 5 comments
Open

Long filenames break upload #80

meilinger opened this issue Dec 20, 2016 · 5 comments

Comments

@meilinger
Copy link

When uploading a file to process, long filenames (specifically those > 64 characters long) yield value too long for type character varying(64)

https://en.wikipedia.org/wiki/Comparison_of_file_systems#Limits excluding ReiserFS/Reiser4 general consensus is 255 chars

@JivanAmara
Copy link
Collaborator

JivanAmara commented Dec 22, 2016 via email

JivanAmara added a commit to JivanAmara/django-osgeo-importer that referenced this issue Jan 9, 2017
@JivanAmara
Copy link
Collaborator

Hi @meilinger, would you check that this is resolved in this branch: https://github.com/jivanamara/django-osgeo-importer/tree/long_filenames_break_upload

@meilinger
Copy link
Author

@JivanAmara Looks like that fixes the filename length issue, thanks! Running into another issue related to introspection of the .prj file w/in a zipped Shapefile throwing a Could not open the datasource GDAL exception. I might submit another issue for this later, but it very well could be something that I'm doing wrong...

@JivanAmara
Copy link
Collaborator

Sounds good, I'll send that fix to be merged.

@senoadiw
Copy link

senoadiw commented Feb 8, 2017

Hi @JivanAmara , I seem to be getting a similar error too on 0.1.1a1. The error happens after selecting the file, the difference is it happens when saving upload_layer https://github.com/GeoNode/django-osgeo-importer/blob/master/osgeo_importer/utils.py#L472

Traceback: traceback.txt

Here is the shp I used (extract the gzip first): parks.zip.gz

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants