Comments

shane birley’s picture

Title: port d7 » Port of SWFUpload to Drupal 7

Just wanting to clarify the title.

TimelessDomain’s picture

Issue tags: +drupal 7 port, +d7 ports
Fidelix’s picture

Oh this would be good...

Fidelix’s picture

Or maybe join forces with the plupload module:
http://drupal.org/project/plupload

Would be even better.

kirilius’s picture

+1

milos.kroulik’s picture

+1

jojonaloha’s picture

Status: Active » Needs work
StatusFileSize
new263.76 KB
new97.09 KB

I've been working on a port to Drupal 7. It is not perfect, but I have it as a working widget for Image and File fields. I know the draggable ordering doesn't work. There were also some unanticipated changes to the logic in order to get it to work with 7, so there is still some code that is no longer in use.

I've attached two different patches, the git patch is for if you have a git checkout of the project, you can review each commit I made. At one point I had copied the swfupload.swf and js files into and was going to use hook_library, but after reading the Libraries API page, decided that it was better to use that instead. So there is now a dependency on http://drupal.org/project/libraries instead of jqp

thaistore’s picture

can you please make a dev release please???

i dont know how to patch this, di i have to patch the d6 with first patch?

or can somebody post a patched module just to be uploaded please, i need this module thank you

thaistore’s picture

this module works, tested, works like a charm

http://drupal.org/project/plup

sw3b’s picture

@jojonaloha is it possible to have a ZIP ? Thanks

milos.kroulik’s picture

I wasn't able to apply the patch using git apply command.

The error I got was:

fatal: git diff header lacks filename information when removing 1 leading pathname components (line 1759)

skilip’s picture

There's e new release now ready to be tested.

jojonaloha’s picture

Version: 6.x-2.0-beta8 » 7.x-1.x-dev
StatusFileSize
new2.95 KB

I noticed a few issues when trying to use the latest checkout. I've attached a patch that resolves some of them: hook_perm() and moved hook_requirements() to .install. Also when I tried uninstalling the module (to make sure I didn't break anything when moving hook_requirements) I got a PDO error due to the way variables were being cleaned up.

Some of the remaining issues:
- at first I enabled the module without having the swfupload library downloaded to sites/all/libraries. It looks like hook_requirements() tries to check that, but the implementation doesn't seem to work (using Libraries API 7.x-2.0-alpha2).
- even after installing the swfupload library, I get a "tabledrag.js:164: Uncaught TypeError: Object function (j,s){return new b.fn.init(j,s)} has no method 'cookie'" javascript error (Using Drupal 7.14).