Closed (fixed)
Project:
FileField Sources
Version:
7.x-1.4
Component:
Source: Attach (FTP)
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
15 Sep 2011 at 20:24 UTC
Updated:
13 Aug 2012 at 02:21 UTC
Jump to comment: Most recent file
Comments
Comment #1
quicksketchLast I looked at the problem I still didn't know how to make this possible in Drupal 7. The D7 abstraction around file handling is very convenient in a lot of places, but certain use cases (such as this) don't seem to have an immediate answer. So generally, there isn't any "news" on the development of the feature, right now I'm still trying to figure out how it would be possible. But in general terms I'm not spending a huge amount of time on FileField Sources currently (I tend to cycle through my modules an give them each dedicated attention every couple of weeks).
Comment #2
bluestarstudios commentedThat makes sense. And surely let me say Thank You for taking the time to create this one. It's really helpful. I researched a lot trying to find a module that did this with such ease, but this was surely the best one out there. So thank you for that. If there's any way I can help let me know. ;)
In the meantime, do you know of any other module that does importing/attaching of files already uploaded via FTP?
Comment #3
quicksketchNow that I'm more familiar with Drupal 7, I've found a solution to this problem though it's not exactly pretty. The original problem (as shown in this patch's removed code) is that when you delete the file from the old location, it's no longer in the list of options in the select list. This causes Drupal's built-in validation to think that the user is trying to input an invalid file location.
We can work-around this by storing the original list of files, then checking the original list on rebuilds of the form. This patch does exactly that, and removes all the temporary TODO code.
Comment #4
quicksketchCommitted to the 7.x branch.