[ckan-dev] File upload not showing

Nigel Babu nigel.babu at okfn.org
Fri Jan 31 11:10:29 UTC 2014


You can set it inside the /etc/ckan/default/apache.wsgi file.

Nigel Babu

Developer  |  @nigelbabu <https://twitter.com/nigelbabu>

The Open Knowledge Foundation <http://okfn.org/>

Empowering through Open Knowledge

http://okfn.org/  |  @okfn <http://twitter.com/OKFN>  |  OKF on
Facebook<https://www.facebook.com/OKFNetwork> |
Blog <http://blog.okfn.org/>  |  Newsletter<http://okfn.org/about/newsletter>

 CKAN | http://ckan.org/ | @CKANproject
<http://twitter.com/CKANproject> |the world’s leading open-source data
portal platform


On 31 January 2014 16:37, James Bell <james at james-bell.co.uk> wrote:

> Hi
>
> I've figured it out! I was editing the development.ini file which I was
> sure the CKAN installation was using as this is one that the documentation
> mentioned but it appears to be using the production.ini file instead! I
> have changed the settings and the button has appeared.
>
> How do I set which file is in use?
>
> Thanks for all your help,
> James
>
> ...
>
>  This year I am running the London and Yorkshire marathons.
>
> [image: JustGiving - Sponsor me now!]<http://www.justgiving.com/jamesryanbell>
>
> To sponsor me for these and various others runs throughout this year and
> last please go visit: http://justgiving.com/jamesryanbell
>
> All money raised will go to Diabetes UK
>
> Thanks
>
> :-)
>
>
> On 31 January 2014 11:01, Nigel Babu <nigel.babu at okfn.org> wrote:
>
>> This is weird. The only check to hide the upload button is to check if
>> ofs.impl has been defined. I can only think of caching. Can you try adding
>> a random query parameter after the url? Something like
>> http://yourckaninstance.com/dataset/mytestdataset/resource_edit/1c135be3-a6b4-4359-b2b6-f7ecc647149a?_bust_cache=True
>>
>> Nigel Babu
>>
>> Developer  |  @nigelbabu <https://twitter.com/nigelbabu>
>>
>> The Open Knowledge Foundation <http://okfn.org/>
>>
>> Empowering through Open Knowledge
>>
>> http://okfn.org/  |  @okfn <http://twitter.com/OKFN>  |  OKF on Facebook<https://www.facebook.com/OKFNetwork> |
>> Blog <http://blog.okfn.org/>  |  Newsletter<http://okfn.org/about/newsletter>
>>
>>  CKAN | http://ckan.org/ | @CKANproject <http://twitter.com/CKANproject>|the world’s leading open-source data portal platform
>>
>>
>> On 31 January 2014 15:07, James Bell <james at james-bell.co.uk> wrote:
>>
>>> Yes I have restarted both apache2 and nginx but it's still not working
>>> unfortuantely
>>>
>>> ...
>>>
>>> This year I am running the London and Yorkshire marathons.
>>>
>>> [image: JustGiving - Sponsor me now!]<http://www.justgiving.com/jamesryanbell>
>>>
>>> To sponsor me for these and various others runs throughout this year and
>>> last please go visit: http://justgiving.com/jamesryanbell
>>>
>>> All money raised will go to Diabetes UK
>>>
>>> Thanks
>>>
>>> :-)
>>>
>>>
>>> On 31 January 2014 09:31, Nigel Babu <nigel.babu at okfn.org> wrote:
>>>
>>>> Have you restarted apache and nginx after making the configuration
>>>> changes? If not, please run the following:
>>>>
>>>> sudo service apache2 restart
>>>> sudo service nginx restart
>>>>
>>>> Nigel Babu
>>>>
>>>> Developer  |  @nigelbabu <https://twitter.com/nigelbabu>
>>>>
>>>> The Open Knowledge Foundation <http://okfn.org/>
>>>>
>>>> Empowering through Open Knowledge
>>>>
>>>> http://okfn.org/  |  @okfn <http://twitter.com/OKFN>  |  OKF on
>>>> Facebook <https://www.facebook.com/OKFNetwork>  |  Blog<http://blog.okfn.org/> |
>>>> Newsletter <http://okfn.org/about/newsletter>
>>>>
>>>>  CKAN | http://ckan.org/ | @CKANproject<http://twitter.com/CKANproject>|the world’s leading open-source data portal platform
>>>>
>>>>
>>>> On 31 January 2014 14:26, James Bell <james at james-bell.co.uk> wrote:
>>>>
>>>>> Hi Nigel,
>>>>>
>>>>> Below are all the ofs sections of the configuration file I am using
>>>>>
>>>>> # Local file storage:
>>>>> ofs.impl = pairtree
>>>>> ofs.storage_dir = /var/lib/ckan/default/uploads
>>>>> #ckan.storage_path = /var/lib/ckan/default/uploads
>>>>> #ckan.datastore.enabled = true
>>>>>
>>>>>
>>>>> # Google cloud storage:
>>>>> #ofs.impl = google
>>>>> #ofs.gs_access_key_id =
>>>>> #ofs.gs_secret_access_key =
>>>>>
>>>>> # S3 cloud storage:
>>>>> #ofs.impl = s3
>>>>> #ofs.aws_access_key_id = ....
>>>>> #ofs.aws_secret_access_key = ....
>>>>>
>>>>> Thanks,
>>>>> James
>>>>>
>>>>>
>>>>> ...
>>>>>
>>>>> This year I am running the London and Yorkshire marathons.
>>>>>
>>>>> [image: JustGiving - Sponsor me now!]<http://www.justgiving.com/jamesryanbell>
>>>>>
>>>>> To sponsor me for these and various others runs throughout this year
>>>>> and last please go visit: http://justgiving.com/jamesryanbell
>>>>>
>>>>> All money raised will go to Diabetes UK
>>>>>
>>>>> Thanks
>>>>>
>>>>> :-)
>>>>>
>>>>>
>>>>> On 31 January 2014 02:20, Nigel Babu <nigel.babu at okfn.org> wrote:
>>>>>
>>>>>> Hi James,
>>>>>>
>>>>>> Can you paste the bits of your config that talk about ofs please? I'm
>>>>>> particularly looking for the values of ofs.impl and ofs.storage_dir. If
>>>>>> those lines start with semicolon in your config, please try removing them.
>>>>>>
>>>>>> Nigel Babu
>>>>>>
>>>>>> Developer  |  @nigelbabu <https://twitter.com/nigelbabu>
>>>>>>
>>>>>> The Open Knowledge Foundation <http://okfn.org/>
>>>>>>
>>>>>> Empowering through Open Knowledge
>>>>>>
>>>>>> http://okfn.org/  |  @okfn <http://twitter.com/OKFN>  |  OKF on
>>>>>> Facebook <https://www.facebook.com/OKFNetwork>  |  Blog<http://blog.okfn.org/> |
>>>>>> Newsletter <http://okfn.org/about/newsletter>
>>>>>>
>>>>>>  CKAN | http://ckan.org/ | @CKANproject<http://twitter.com/CKANproject>|the world’s leading open-source data portal platform
>>>>>>
>>>>>>
>>>>>> On 30 January 2014 20:19, James Bell <james at james-bell.co.uk> wrote:
>>>>>>
>>>>>>>  Hi,
>>>>>>>
>>>>>>> I've installed and setup CKAN on an ubuntu cloud server using the
>>>>>>> latest package (packaging.ckan.org/python-ckan_2.1_amd64.deb) and
>>>>>>> everything appears to be working fine but I can't get file uploading
>>>>>>> enabled.
>>>>>>>
>>>>>>> I have following the documentation on the CKAN website
>>>>>>> http://docs.ckan.org/en/ckan-2.1.1/filestore.html<http://docs.ckan.org/en/latest/filestore.html#setup-file-uploads> and
>>>>>>> I have everything setup as it asks but I still just get the two options of
>>>>>>> 'Link to a file' or 'Link to an API'
>>>>>>>
>>>>>>> I have checked the dev console within chrome and it's not reporting
>>>>>>> any JavaScript errors (read some other reports online about this being the
>>>>>>> cause).
>>>>>>>
>>>>>>> Any ideas?
>>>>>>>
>>>>>>> I have already setup a ticket on stackoverflow (
>>>>>>> http://stackoverflow.com/questions/21315226/ckan-file-upload-not-showing/21457751)
>>>>>>> and github (https://github.com/ckan/ckan/issues/1478) if you would
>>>>>>> prefer to respond via those.
>>>>>>>
>>>>>>> Thanks,
>>>>>>> James
>>>>>>> ...
>>>>>>>
>>>>>>> This year I am running the London and Yorkshire marathons.
>>>>>>>
>>>>>>> [image: JustGiving - Sponsor me now!]<http://www.justgiving.com/jamesryanbell>
>>>>>>>
>>>>>>> To sponsor me for these and various others runs throughout this year
>>>>>>> and last please go visit: http://justgiving.com/jamesryanbell
>>>>>>>
>>>>>>> All money raised will go to Diabetes UK
>>>>>>>
>>>>>>> Thanks
>>>>>>>
>>>>>>> :-)
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> ckan-dev mailing list
>>>>>>> ckan-dev at lists.okfn.org
>>>>>>> https://lists.okfn.org/mailman/listinfo/ckan-dev
>>>>>>> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> ckan-dev mailing list
>>>>>> ckan-dev at lists.okfn.org
>>>>>> https://lists.okfn.org/mailman/listinfo/ckan-dev
>>>>>> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20140131/15136677/attachment-0003.html>


More information about the ckan-dev mailing list