Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
upload.module
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
6 Aug 2006 at 16:53 UTC
Updated:
6 Oct 2008 at 01:52 UTC
I posted this in the forums but havent seen any feedback. I am guessing this is a bug.
We started out our site in private file system mode and then changed the focus of the site a bit and wanted everything public. The switch went fine as we changed all out urls in the node content but then we hit a problem. We cannot upload files through the upload.module anymore. The system says it uploads but when you look in the directory there is nothing there. When we switch back to private the uploading functionality returns and we upload files that appear in the file directory.
Is there somewhere that the private setting is being cached or stored that is breaking things? Is this a bug?
Comments
Comment #1
killes@www.drop.org commentedFrom the settings page:
If you want any sort of access control on the downloading of files, this needs to be set to private. You can change this at any time, however all download URLs will change and there may be unexpected problems so it is not recommended.
This is simply a feature which isn't implemented.
Comment #2
jeffrey.dalton commentedso the "unexpected problems" is you cant upload files anymore if you switch this?
Comment #3
killes@www.drop.org commentedWell, I certainly did not expect that particular problem, so it fits the description.
Comment #4
jeffrey.dalton commentedI did some more digging on this one and it seems the problem is with the part of the upload.module that generates the temp address for previewing the attached file/image in the body area before submitting. If this bug is corrected it would make it possible to switch between public and private settings for file handling. This would then seem to be a bug... as forcing this decision once for all time at install on a site is a bit heavy handed eh?
It seems the files do upload once the node is saved but the temp address functions do not work properly for previewing prior to node save unless file settings are switched back to the original setting (private in this case).
Comment #5
jeffrey.dalton commentedI did some more digging on this one and it seems the problem is with the part of the upload.module that generates the temp address for previewing the attached file/image in the body area before submitting. If this bug is corrected it would make it possible to switch between public and private settings for file handling. This would then seem to be a bug... as forcing this decision once for all time at install on a site is a bit heavy handed eh?
It seems the files do upload once the node is saved but the temp address functions do not work properly for previewing prior to node save unless file settings are switched back to the original setting (private in this case).
Comment #6
magico commentedFollowing #1 it is certainly a feature request.
@ivisage-dev: if you find that what is needed is just to code a few lines of code, you could make a patch and it might enter the queue. Enough persons will be able to test this "feature" that, AFAIK is really usefull.
Stay marked as "bug" to call some attention, but I really think that this is a feature...
Comment #7
L4san commentedStill a bug?
Stay marked as "bug" to call some attention
Comment #8
marcingy commentedChange to feature to correctly categorise
Comment #9
drewish commentedi don't really think this is a problem any longer. the only reason you can't switch the setting is you'll break your URLs.
Comment #10
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.