Coder Social home page Coder Social logo

yawd-elfinder's People

Contributors

bitdeli-chef avatar gstrat avatar pahaz avatar phaiax avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

yawd-elfinder's Issues

zip doesnt work

Try to zip and unzip a directory (not empty).
I will create a zipped without the file in the directory. [1st problem]
When trying to unzip this smaller zip file, an error is produced too [2nd problem- cant unzip zip with no file]

Encrypt/decrypt file paths

The user may choose to encrypt filepaths for security reasons. This must be switched on and off through optionsets

PIL Requirement

Not sure if you've been made aware, but PIL has become deprecated in favour of Pillow (a PIL fork/replacement).

The module should be compatible with PIL, so only the requirements.txt would need an update.

this project is dead

Hi, elfinder is dead, it is not posible live agains?? or exits other branch is updated?

thank!!

Thanks for letting me know about your project

Hello,
I've checked it and it looks perfect. I will definitely try to use it. I have a few more tips for improvements:

  • I think, that it would be nice to have some support for i18n in jQuery plugin, which you are using to represent an ElfinderField.
  • When I was was working on improvements of original django-elfinder, I tried to make it easier to integrate it with TinyMCE editor. This only measns, that I wrote two simple views, one for rendering JavaScript with callback for TinyMCE editor and one simple wrapper for elFinder connector view.

If you want, I can adapt my current TinyMCE-connector code to be used in your new project.

Martin

Elfinder don't work in Inline

I try to use elfinder in inline. In my inline model I have only elfinder field. inline extra=0
When I am clicking "Set" it only redirects me at model list page and I see saved model.

Also if inline extra=0 set to 1 all will work fine but on only at first inline. At next dynamically added on page inlines it wouldn't work(

Also there is no label of elfinder field in tabular inline

Elfinder settings must be contain only strings.

Now settings contain variables, that needed import.

# from os.path import join
# from elfinder.utils.accesscontrol import fs_standard_access
# from elfinder.volumes.filesystem import ElfinderVolumeLocalFileSystem

And if i`m want change them in settings.py you need import them.

And im get error if use import: ImproperlyConfigured: The SECRET_KEY setting must not be empty.`

maxArchiveSize to allow string decaration

this setting should not only allow integers. '128m' should mean 128 megabytes, just like the 'uploadMaxSize' option. Additionally, this setting should be renamed to 'archiveMaxSize' for naming
consistency.

Moving File forward and backwards again causes Error. Solution appended

Move a file into an other folder and then back into the first without restarting the django server:
The movement fails.

Solution: Clear cached stat not only of the source-folder, but also of the source file:
add
self._clear_cached_stat(src)
into
elfinder/volumes/base.py after line 1407

sorl thumbnail

Hello!
sorl thumbnail doesn't work with yawd-elfinder. Is there any way to get around the issue?

Elfinder doesn't preview image

at official site
Capture1
at my django app
Capture

no js errors in firebug.
The only have changed in code - fuction, returning mime, always return none, because I don't want to use magic.
last from pypi, django 1.4, don't work all browsers

Flask usage

Is there any hope of using yawd-elfinder with a flask backend instead of django backend? Any pointers on how to get started with this?

Django 1.5.1

Downloading/unpacking Django>=1.4,<1.5 (from yawd-elfinder)
Downloading Django-1.4.5.tar.gz (7.7MB): 7.7MB downloaded
Running setup.py egg_info for package Django

Found existing installation: Django 1.5.1
Uninstalling Django:

elfinder in django 1.6

Hi, is posible install and configure elfinder with django 1.6.3? when a try install with pip this uninstall version 1.6.3 and install version 1.4.11 django? is posible install and used

Cheers

update python-magic==0.4.6

You get a very obscure error message "MagicException: no magic files loaded" when running the example project out of the box under OSX Mavericks. According to the posted issue, it happens in Linux distros also:
ahupp/python-magic#44

Recommend you change python-magic to use 0.4.6.

Internal Server Error: /elfinder/yawd-connector/default/default/
Traceback (most recent call last):
  File "/Users/bschott/.virtualenvs/yawd-elfinder/lib/python2.7/site-packages/Django-1.6.2-py2.7.egg/django/core/handlers/base.py", line 114, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/Users/bschott/.virtualenvs/yawd-elfinder/lib/python2.7/site-packages/Django-1.6.2-py2.7.egg/django/contrib/admin/views/decorators.py", line 17, in _checklogin
    return view_func(request, *args, **kwargs)
  File "/Users/bschott/.virtualenvs/yawd-elfinder/lib/python2.7/site-packages/Django-1.6.2-py2.7.egg/django/views/generic/base.py", line 69, in view
    return self.dispatch(request, *args, **kwargs)
  File "/Users/bschott/.virtualenvs/yawd-elfinder/lib/python2.7/site-packages/Django-1.6.2-py2.7.egg/django/utils/decorators.py", line 29, in _wrapper
    return bound_func(*args, **kwargs)
  File "/Users/bschott/.virtualenvs/yawd-elfinder/lib/python2.7/site-packages/Django-1.6.2-py2.7.egg/django/views/decorators/csrf.py", line 57, in wrapped_view
    return view_func(*args, **kwargs)
  File "/Users/bschott/.virtualenvs/yawd-elfinder/lib/python2.7/site-packages/Django-1.6.2-py2.7.egg/django/utils/decorators.py", line 25, in bound_func
    return func(self, *args2, **kwargs2)
  File "/Users/bschott/.virtualenvs/yawd-elfinder/lib/python2.7/site-packages/yawd_elfinder-0.91.00_rc1-py2.7.egg/elfinder/views.py", line 101, in dispatch
    return super(ElfinderConnectorView, self).dispatch(*args, **kwargs)
  File "/Users/bschott/.virtualenvs/yawd-elfinder/lib/python2.7/site-packages/Django-1.6.2-py2.7.egg/django/views/generic/base.py", line 87, in dispatch
    return handler(request, *args, **kwargs)
  File "/Users/bschott/.virtualenvs/yawd-elfinder/lib/python2.7/site-packages/yawd_elfinder-0.91.00_rc1-py2.7.egg/elfinder/views.py", line 108, in get
    return self.output(self.get_command(request.GET), request.GET)
  File "/Users/bschott/.virtualenvs/yawd-elfinder/lib/python2.7/site-packages/yawd_elfinder-0.91.00_rc1-py2.7.egg/elfinder/views.py", line 79, in output
    return self.render_to_response(self.elfinder.execute(cmd, **args))
  File "/Users/bschott/.virtualenvs/yawd-elfinder/lib/python2.7/site-packages/yawd_elfinder-0.91.00_rc1-py2.7.egg/elfinder/connector.py", line 153, in execute
    result = getattr(self, '_%s' % cmd)(**kwargs)
  File "/Users/bschott/.virtualenvs/yawd-elfinder/lib/python2.7/site-packages/yawd_elfinder-0.91.00_rc1-py2.7.egg/elfinder/connector.py", line 239, in _open
    files += self._volumes[id_].tree(exclude=target)
  File "/Users/bschott/.virtualenvs/yawd-elfinder/lib/python2.7/site-packages/yawd_elfinder-0.91.00_rc1-py2.7.egg/elfinder/volumes/base.py", line 511, in tree
    return dirs + self._get_tree(path, (deep - 1) if deep > 0 else (self._options['treeDeep'] - 1), excluded)
  File "/Users/bschott/.virtualenvs/yawd-elfinder/lib/python2.7/site-packages/yawd_elfinder-0.91.00_rc1-py2.7.egg/elfinder/volumes/base.py", line 1312, in _get_tree
    stat = self.stat(p)
  File "/Users/bschott/.virtualenvs/yawd-elfinder/lib/python2.7/site-packages/yawd_elfinder-0.91.00_rc1-py2.7.egg/elfinder/volumes/base.py", line 1149, in stat
    stat = self._stat(path)
  File "/Users/bschott/.virtualenvs/yawd-elfinder/lib/python2.7/site-packages/yawd_elfinder-0.91.00_rc1-py2.7.egg/elfinder/volumes/filesystem.py", line 144, in _stat
    stat['mime']  = 'directory' if dir_ else self.mimetype(path)
  File "/Users/bschott/.virtualenvs/yawd-elfinder/lib/python2.7/site-packages/yawd_elfinder-0.91.00_rc1-py2.7.egg/elfinder/volumes/base.py", line 1211, in mimetype
    mime = self._mimetype(path)
  File "/Users/bschott/.virtualenvs/yawd-elfinder/lib/python2.7/site-packages/yawd_elfinder-0.91.00_rc1-py2.7.egg/elfinder/volumes/filesystem.py", line 179, in _mimetype
    return magic.Magic(mime=True).from_file(path.encode('utf-8')) #unicode filename support
  File "/Users/bschott/.virtualenvs/yawd-elfinder/lib/python2.7/site-packages/python_magic-0.4.3-py2.7.egg/magic.py", line 51, in __init__
    magic_load(self.cookie, magic_file)
  File "/Users/bschott/.virtualenvs/yawd-elfinder/lib/python2.7/site-packages/python_magic-0.4.3-py2.7.egg/magic.py", line 138, in errorcheck
    raise MagicException(err)
MagicException: no magic files loaded

custom optionsets

custom optionsets are defined using an 'ELFINDER_CONNECTOR_OPTS' setting instead of the intended and documented 'ELFINDER_CONNECTOR_OPTION_SETS'

Exception when upload file with no ascii filename. (no unicode support)

ON view, exception in json.parse https://github.com/yawd/yawd-elfinder/blob/master/elfinder/views.py#L50

Exception Type: UnicodeDecodeError at /elfinder/yawd-connector/default/default/
Exception Value: 'utf8' codec can't decode byte 0xcf in position 0: invalid continuation byte

On upload, error at volume https://github.com/yawd/yawd-elfinder/blob/master/elfinder/volumes/base.py#L797 , and except on this https://github.com/yawd/yawd-elfinder/blob/master/elfinder/connector.py#L544

UnicodeDecodeError 'ascii' codec can't encode characters in position 4-13: ordinal not in range(128)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.