When I try to download a file that has been attached with the file import module I receive access denied error for all access levels even admin.
I have stayed with the default paths of
sites/default/files/import
sites/default/files
I can see all the files in the import directory that I ftp there.
I check the one I wish to import by going to the page and clicking on the file import tab.
I then go to the page and I can see the file is attached and the size is correct, but when I click on it, I receive an access denied message.
Looking in the
sites/default/files folder I do see the file, but If I am seeing this correct, the file has a permision of 664 and all the others have 644. the group is the same as all the other files. changing the file permissions to 644 like the rest does not help I still get the same error.
Anyone have any solutions? I really really need a way to put large files on the site as the php upload limit for my hosting provider is very low.
Thank you
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | file_import-744000.patch | 7.27 KB | vwX |
Comments
Comment #1
Jim Ruby commentedI am using the latest version of drupal to date 6.16. I just do not understand how an admin gets an access denied error. If anyone has any ideas I'm open to try them as I will need to put the old site back online if I can not get this resolved by tonight and just hope the old way of doing my files will work under drupal 6.15 and just not upgrade.
Comment #2
vwX commentedHere is a patch that fixes this, the permissions issue and an issue with uid not being updated on the files table.
Comment #3
Jim Ruby commentedHi, would you mind uploading a patched version? I took a look at how to patch the file and well I got lost. I do not have access to command line in linux to go that rout either.
Thank you.
Comment #4
Jim Ruby commentedI have the updated fileimport module with the patch in comment 2, however how can I fix I have two files that still give me this error. I deleted the node and recreated and attached the files but for some strange reason still get this error.
Thanks again for the help and fix.
Comment #5
Jim Ruby commentedHi, I upgraded to drupal 6.17 yesterday and I am getting access denied errors again o my files I am using the fileimport module with the patch in 2. can anyone help it seems all my files are giving me access denied errors.
Comment #6
tmetzger commentedHey did you ever get this settled?
Comment #7
Jim Ruby commentedYes, but I do not remember the fix. I also stopped usinghe file counter module too and that might of helped too as it started to cause problems too. Planning on another change of the site with different modules in hopes It will be better.
Comment #8
nikm commented@#2 the patch worked for me, thank you!