Skip to content

Commit

Permalink
Fixes a problem with layers upload
Browse files Browse the repository at this point in the history
  • Loading branch information
capooti committed Feb 21, 2018
1 parent 9456161 commit 19655c2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions geonode/layers/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,10 @@ def file_upload(filename, name=None, user=None, title=None, abstract=None,
upload_session = UploadSession.objects.create(user=theuser)

# Get all the files uploaded with the layer
tempdir = os.path.dirname(filename)
for item in os.listdir(tempdir):
if item.endswith('.shp'):
filename = os.path.join(tempdir, item)
files = get_files(filename)

# Set a default title that looks nice ...
Expand Down

0 comments on commit 19655c2

Please sign in to comment.