Skip to content

Commit

Permalink
change object_name, print bucket
Browse files Browse the repository at this point in the history
  • Loading branch information
stojanovskis1 committed Jul 23, 2024
1 parent 047e36c commit 0e86bfe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ckanext/bulkupload/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,12 +188,14 @@ def bulk_resource_upload(pkg_name):
log.info(file_name)
f.save(file_name)

object_name = '/resources/' + x['id'] + '/' + url_striped
object_name = url_striped
log.info("=========================")
log.info(object_name)

try:
response = s3_client.upload_file(file_name, bucket, object_name)
log.info("BUCKET!!!!!!!")
log.info(bucket)
log.info("RESPONSE!!!!!!!!!!")
log.info(response)

Expand Down

0 comments on commit 0e86bfe

Please sign in to comment.