Hi there! Im having a problem when im downloading a resume. I tried to download cv's but when i click the link filename is always index. Example filename is MyResume.doc but when admin download Myresume.doc it become index.doc. Can you please help me?Thanks!
Is this happening to all uploaded files? And, if you're the one uploading the file, what browser are you using to upload the file...?
Thanks!
Bob.
hi there! Yes all uploaded files was rename to index. Im using firefox 3.5 and i.e8 but some of users i dont know. they upload their resume and i download it on employment application admin.but when i call this $this->application->file_name the name was correct..but again...when u click download its index. do i have to set the header?but where can I add this code?thank you.
header('Content-Disposition: attachment; filename="'.$this->application->file_name.'"');
Hi again sir Bob! I also have a problem with some files like .docx because it was rename to index.php. i dont know why..please help me. thanks!
Hi there! Im still waiting ... :( please help me here.
Just a thought on the .docx files from other issues: is your site set up to accept .docx files. You might need to add in what file types are accepted (.txt, .pdf, .doc, .docx) in order for it to recognize the file type.
Don't know if this is your issue or not.
hi there! yes I've already add .docx in my configuration in joomla. I'm still wondering why some of files are not opening. But I'm thinking if it's the filename issue's like there is a space or underscore or some special characters. I've seen the code and it is using addslashes..but still i cant open some of the files..:(.
I'm the one who experience this? Can someone help me please?
HI there! I got it working I can now open .doc and .pdf files BUT previous resume's i can't open them..Now I only have one problem. Why is that if I will download a resume I always get a filename index.php? If it's .doc it becomes index.php.doc and if it's .pdf it will become index.php.pdf..? I always get index.php. Please help me here.:D
HI again! im still waiting Sir Bob..please help me here :D
I've been messing around with this and every variation I've tried works in my dev environment...
Can you give me some details about your hosting environment? Windows? Linux? MySQL version, etc. etc.
As much detail as possible so I can continue to try and recreate this...
My host is a Linux, and MySQL Version is 5 and im using sef in joomla and .htaccess. My php version is 5.2.6. Im still figuring out this but please help me :D. Also my Joomla version is 1.5.12.
This seems to be a major issue for many people (including myself).Can I ask, what is the thinking behind storing uploaded documents as a BLOB in MySQL?Would it not make more sense and prove more globally compatible to upload (renaming on the fly) files to an independent folder and as needed retrieve them from that location instead of the Database?I have attempted to rewrite the upload function to achieve this put am receiving error messages regarding moving the files. However I would be prepared to shar my progress with other developers in an attempt to develop a more robust solution to this issue...DeanLikrish.comI know have a solution that replaces the default method of storing the files in a BLOB field in the MySQL database...My code changes achieve the following...1. As per original code, file is read into tmp_file and stored in the /tmp directory.2. A new filname is constructed using the ID of the applicant with an underscore followed by the name of the file.3. The renamed file is copied to its final location (in my case "/cvs").4. The filename / size and type is written to the database.5. The paths to the file have been updated accordingly.Works perfectly in FF 3.5 and IE7 / IE8I am using an older version of this component however the structure is the same and so my updated code should work in most if not all versions.For this to work correctly you are required to update front end and backend model->application.php files and create a folder in the root of your Joomla site called "/cvs" or what ever you prefer... (just remember to update the relevant paths).If you need source to update your system to do the same please let me know.
Hi can you post your solution for storing the files?
I have the same problem, and there is no other help. Thank you!