Closed (fixed)
Project:
FileField
Version:
6.x-3.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Mar 2010 at 21:13 UTC
Updated:
12 May 2010 at 23:30 UTC
Jump to comment: Most recent file
It's like this:
- User goes to create a new node.
- Uses FileField to upload a file. Presses "upload"
- File is uploaded to directory -- check
- Entry is written to files table -- check
- User clicks on the hyperlink that is generated automatically, gets a "page not found"
- reason: the entry in the files table has a "status" code of 0, because the node has not yet been saved. Therefore, the file cannot be accessed.
Any good solutions for fixing this or disabling the ability to "preview" your upload before hitting save.
Thanks
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | filefield_temp_file_access.patch | 1.57 KB | quicksketch |
Comments
Comment #1
quicksketchFileField should grant unrestricted access to any file that has a status of 0, because it's not yet associated with a node (so it doesn't know what restrictions to put in place). At least that's what it's intended to do, we've had reports of people complaining about this behavior in other issues, which would indicate this is still the case for some users.
Comment #2
quicksketchAfter testing this out, it seems I was mistaken. FileField *should* grant unrestricted access to temporary files but it doesn't. I've applied this patch which makes a list of temporary files that are acceptable to grant access to based on the user editing the node. As soon as the node is saved, access is granted normally based on the existing permissions.