[ckan-dev] how to enable file upload CKAN 2.0
Vitor Baptista
vitor at vitorbaptista.com
Thu Mar 28 05:21:37 UTC 2013
Cool, George. I'm glad it worked out in the end :)
Em 28/03/2013 01:50, "George Sattler" <George.sattler at xvt.com.au> escreveu:
> Hi Vítor****
>
> ** **
>
> Thanks for all your suggestions. I have the issue sorted now after
> reinstalling ckan. Whether it was related or not – it also solved the
> javascript error. Perhaps I had run something incorrectly during the
> initial configuration? Anyway, it’s fixed now.****
>
> ** **
>
> Thanks****
>
> George**
>
> ** **
>
> *From:* ckan-dev-bounces at lists.okfn.org [mailto:
> ckan-dev-bounces at lists.okfn.org] *On Behalf Of *Vitor Baptista
> *Sent:* Thursday, 28 March 2013 5:11 AM
> *To:* CKAN Development Discussions
> *Subject:* Re: [ckan-dev] how to enable file upload CKAN 2.0****
>
> ** **
>
> Hi George,****
>
> ** **
>
> It's quite hard to read the stacktrace in gmail. They don't look directly
> related to this issue, but sometimes an exception in one place, breaks code
> in another. These errors shouldn't be happening. Could you try and debug
> that before moving on, just to be sure?****
>
> ** **
>
> Cheers,****
>
> Vítor Baptista.****
>
> 2013/3/27 George Sattler <George.sattler at xvt.com.au>****
>
> There’s nothing in the console except for one thing (and the included
> trace). I have this error for every ckan page though so I suppose it’s
> something else.****
>
> ****
>
> 1. GET http://opendata.xvt.com.au/api/i18n/en 404 (Not Found)
> jquery.min.js:529<http://opendata.xvt.com.au/data/fanstatic/vendor/:version:2013-03-27T09:39:06.48/jquery.min.js>
> ****
>
> 1. sendjquery.min.js:529<http://opendata.xvt.com.au/data/fanstatic/vendor/:version:2013-03-27T09:39:06.48/jquery.min.js>
> ****
>
> 2. jQuery.extend.ajaxjquery.min.js:496<http://opendata.xvt.com.au/data/fanstatic/vendor/:version:2013-03-27T09:39:06.48/jquery.min.js>
> ****
>
> 3. jQuery.(anonymous function)jquery.min.js:465<http://opendata.xvt.com.au/data/fanstatic/vendor/:version:2013-03-27T09:39:06.48/jquery.min.js>
> ****
>
> 4. jQuery.extend.getJSONjquery.min.js:465<http://opendata.xvt.com.au/data/fanstatic/vendor/:version:2013-03-27T09:39:06.48/jquery.min.js>
> ****
>
> 5. jQuery.extend.getLocaleDatatable-toggle-more.js:1462<http://opendata.xvt.com.au/data/fanstatic/base/:version:2013-03-27T09:39:06.46/:bundle:plugins/jquery.inherit.js;plugins/jquery.proxy-all.js;plugins/jquery.url-helpers.js;plugins/jquery.date-helpers.js;plugins/jquery.slug.js;plugins/jquery.slug-preview.js;plugins/jquery.truncator.js;plugins/jquery.form-warning.js;sandbox.js;module.js;pubsub.js;client.js;notify.js;i18n.js;main.js;modules/select-switch.js;modules/slug-preview.js;modules/basic-form.js;modules/confirm-action.js;modules/api-info.js;modules/autocomplete.js;modules/custom-fields.js;modules/related-item.js;modules/data-viewer.js;modules/table-selectable-rows.js;modules/resource-form.js;modules/resource-upload-field.js;modules/follow.js;modules/activity-stream.js;modules/dashboard.js;modules/table-toggle-more.js>
> ****
>
> 6. ckan.initializetable-toggle-more.js:1879<http://opendata.xvt.com.au/data/fanstatic/base/:version:2013-03-27T09:39:06.46/:bundle:plugins/jquery.inherit.js;plugins/jquery.proxy-all.js;plugins/jquery.url-helpers.js;plugins/jquery.date-helpers.js;plugins/jquery.slug.js;plugins/jquery.slug-preview.js;plugins/jquery.truncator.js;plugins/jquery.form-warning.js;sandbox.js;module.js;pubsub.js;client.js;notify.js;i18n.js;main.js;modules/select-switch.js;modules/slug-preview.js;modules/basic-form.js;modules/confirm-action.js;modules/api-info.js;modules/autocomplete.js;modules/custom-fields.js;modules/related-item.js;modules/data-viewer.js;modules/table-selectable-rows.js;modules/resource-form.js;modules/resource-upload-field.js;modules/follow.js;modules/activity-stream.js;modules/dashboard.js;modules/table-toggle-more.js>
> ****
>
> 7. (anonymous function)table-toggle-more.js:1919<http://opendata.xvt.com.au/data/fanstatic/base/:version:2013-03-27T09:39:06.46/:bundle:plugins/jquery.inherit.js;plugins/jquery.proxy-all.js;plugins/jquery.url-helpers.js;plugins/jquery.date-helpers.js;plugins/jquery.slug.js;plugins/jquery.slug-preview.js;plugins/jquery.truncator.js;plugins/jquery.form-warning.js;sandbox.js;module.js;pubsub.js;client.js;notify.js;i18n.js;main.js;modules/select-switch.js;modules/slug-preview.js;modules/basic-form.js;modules/confirm-action.js;modules/api-info.js;modules/autocomplete.js;modules/custom-fields.js;modules/related-item.js;modules/data-viewer.js;modules/table-selectable-rows.js;modules/resource-form.js;modules/resource-upload-field.js;modules/follow.js;modules/activity-stream.js;modules/dashboard.js;modules/table-toggle-more.js>
> ****
>
> 8. firejquery.min.js:60<http://opendata.xvt.com.au/data/fanstatic/vendor/:version:2013-03-27T09:39:06.48/jquery.min.js>
> ****
>
> 9. self.fireWithjquery.min.js:66<http://opendata.xvt.com.au/data/fanstatic/vendor/:version:2013-03-27T09:39:06.48/jquery.min.js>
> ****
>
> 10. jQuery.extend.readyjquery.min.js:22<http://opendata.xvt.com.au/data/fanstatic/vendor/:version:2013-03-27T09:39:06.48/jquery.min.js>
> ****
>
> 11. DOMContentLoadedjquery.min.js:53<http://opendata.xvt.com.au/data/fanstatic/vendor/:version:2013-03-27T09:39:06.48/jquery.min.js>
> ****
>
> Thanks. ****
>
> ****
>
> *From:* ckan-dev-bounces at lists.okfn.org [mailto:
> ckan-dev-bounces at lists.okfn.org] *On Behalf Of *Vitor Baptista
> *Sent:* Wednesday, 27 March 2013 12:53 PM****
>
>
> *To:* CKAN Development Discussions
> *Subject:* Re: [ckan-dev] how to enable file upload CKAN 2.0****
>
> ****
>
> Hi George,****
>
> ****
>
> If you open your browser's console, do you see any JavaScript error in the
> add resource page? Could you copy/paste here?****
>
> ****
>
> Cheers,****
>
> Vítor.****
>
> ****
>
> 2013/3/26 George Sattler <George.sattler at xvt.com.au>****
>
> Hi Vìtor ****
>
> ****
>
> Thanks for your response. Yes, as far as following the Filestore
> configuration documentation guide, I believe I have everything setup. On
> your advice, I updated to the last commit in master but I result was the
> same.****
>
> ****
>
> The relevant values in my development.ini file are:****
>
> ****
>
> ckan.storage.bucket = my-bucket-name****
>
> ofs.impl = pairtree****
>
> ofs.storage_dir = /home/administrator/pyenv/filestore****
>
> ckan.site_url = http://opendata.xvt.com.au/data****
>
> ****
>
> I have pairtree installed and the storage directory
> /home/administrator/pyenv/filestore is owned by ‘administrator’ and is
> empty.****
>
> The ckan.site_url is appended with /data which is my ckan homepage.****
>
> ****
>
> Please let me know, Vìtor (or anyone else) of anything further I might be
> able to try to track down the cause of my problem. ****
>
> Cheers****
>
> George****
>
> ****
>
> ****
>
> *From:* ckan-dev-bounces at lists.okfn.org [mailto:
> ckan-dev-bounces at lists.okfn.org] *On Behalf Of *Vitor Baptista
> *Sent:* Wednesday, 27 March 2013 6:08 AM
> *To:* CKAN Development Discussions
> *Subject:* Re: [ckan-dev] how to enable file upload CKAN 2.0****
>
> ****
>
> Hi George,****
>
> ****
>
> Do you still have this problem? If so, could you double check if you set
> up the configuration values in
> http://docs.ckan.org/en/latest/filestore.html#local-file-storage,
> including ckan.site_url, and that the folder you put into ofs.storage_dir
> is created, empty, and writable to CKAN's user?****
>
> ****
>
> I've tried setting this up locally and everything seems fine. If you're
> still unable to do it, could you try updating CKAN to the latest commit in
> master and retrying?****
>
> ****
>
> Cheers,****
>
> Vítor Baptista.****
>
> 2013/3/22 George Sattler <George.sattler at xvt.com.au>****
>
> Hi Everyone****
>
> I’m new to CKAN. I’ve stalled 2.0 and followed ‘setup and configuration’
> on this page http://docs.ckan.org/en/ckan-1.8/filestore.html for local
> file storage but I find that when I try to add data to a dataset, I don’t
> have a file upload option – only ‘Link to a file’ and ‘Link to an API’****
>
> ****
>
> After following the instructions for local storage, I should have a file
> upload option, right?****
>
> ****
>
> Thanks if anyone can give me any advice on this.****
>
> ****
>
> George****
>
> ****
> ------------------------------
>
> This email and any files transmitted with it is confidential and intended
> solely for the use of the addressee. The unauthorised use, dissemination,
> forwarding, printing or copying of this communication is strictly
> prohibited. If you have received this communication in error please notify
> us immediately by reply email and destroy this communication. Any views and
> opinions presented in this email are solely those of the author and do not
> necessarily represent the views of XVT Solutions. The recipient should
> check this email and any attachments for viruses. XVT Solutions accepts no
> liability for the content of this email, and any damage caused by any
> viruses that could potentially be transmitted through this email.****
>
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev****
>
> ****
>
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev****
>
> ****
>
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev****
>
> ** **
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20130328/bc144cf0/attachment-0001.html>
More information about the ckan-dev
mailing list