I have generated .xlsx reports on server, and page with direct links to these reports.
When user clicks a link, report file is downloaded, but file extension is changed to .xls.
Therefore, I can't open file correctly, only after changing of extension.
Problem occurs in IE, Firefox correctly downloads file, and Chrome saves file with name "File.xlsx.xls"
What can cause such behaviour? Any help appreciated.
Problem fixed with setting of mime-type "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" for .xlsx files
Related
Operating System: Windows 10 Pro
When I have a file open, my coworker can open the file and does not get notified that the file is already opened or locked. He can work in the file and save, and it overwrites my version. Then when I go to save, I get notified that the file was 'modified outside of Illustrator, do I want to continue?" If you click yes, it overwrites his work and his work is lost. Is this a bug that it does not indicate that the file is already open by another user?
Do you open the file from some kind of NAS server inside your office? Yes everyone can open such file with previlleges, and store their own respective cache. But when it comes to saving/overwrite current file it would produce such error. My solution would be saving your current work as different filename.
Maybe such feature should added by Adobe team, not only in Adobe InCopy where you can contribute to edit to one file simultaneously by different users.
I'm having a problem downloading files on Firefox 62.0.2 (64-bit) or Firefox Developer Edition 63.0b9 (64-bit). On Internet Explorer works fine.
I've an admin panel with two buttons to download PDF's. When I click the buttons download pop-up shows and tell me to open the file or save it (and recognize the file as a PDF file). If I choose to open it it opens, but if I've set in the options to save the files on a specific folder, the file is saved with no extension. But if I've set on the options to specify the folder to download everytime, the file it's saved with the extension.
Here you can see the pop-up when it opens:
Then, If I've set on options download always to a specific folder:
But if I've set on the options to specify a folder everytime I download a file:
The file it's saved with the extension. On the code I've set the headers:
response.setHeader("Content-Type:", "application/pdf");
response.setHeader("Content-Disposition", "attachment; filename=\"desglose.pdf\"");
The URL to access to this resource it's:
#GetMapping(value = "/{id}/desglose")
#Secured(AuthoritiesConstants.ADMIN)
And after read this link Firefox cuts extension on files I don't know where it's my mistake. What I'm doing wrong?
Regards.
Ok, while reading the code after had copied here the lines, I noticed that after the function in other class there was a line with:
response.setHeader("Content-Disposition", "attachment");
which was overriding the value:
response.setHeader("Content-Disposition", "attachment; filename=\"desglose.pdf\"");
and was causing the problem. After remove the line response.setHeader("Content-Disposition", "attachment"); the downloads work fine.
Regards!
I am uploading my first Opera Extension. It is very simple. It is a toolbar button that launches a popup window. It works perfectly fine in Opera developer mode. Opera is not letting me upload it successfully. It keeps saying the persona.ini file is missing. Meanwhile I downloaded quite a few extensions already live in the Opera Extensions Directory to see their persona.ini files and none of them even have a persona.ini file. I can only find one example of a persona.ini file online and it must not be correct because it doesn't allow the upload either.
Has anyone experienced this? Why is this happening?
You're probably uploading the extension in .zip format, which is not supported — only .crx and .nex are supported. .zip is only used for Opera themes (hence the reference to persona.ini).
So, to fix this, you can do the following: when in developer mode, use the "Pack extension" button to pack and sign your extension. Then try uploading it again — everything should work fine.
I successfully uploaded zip package in Opera store.
I faced with same issue ("persona.ini is missed") when tried to upload zip package with root folder - I mean zip content: "Sources/content (like manifest.json).
Chrome store accepted this package but for Opera you could try to create zip package with all content without parent folder (Sources folder in my case).
Opera doesn't support till now the .zip file you need to upload either .nex or .crx file.
To create a .nex file..
In your opera URL,just type opera://extensions
Click on Pack Extensions.
Browse to the root directory of your extension and click on okay.
The file will also create an .pem file along with .nex file. Keep your pem file safe and with you for uploading/upgrading your extension.
I’m making a simple web browser for work eeh, what I’d like to know is if its possible to save a file of a particular extension to a particular file.
I currently use google chrome when downloading a file it places this (regardless of extension) in a downloads folder without asking where I ant to download this too.
I want to achieve the same except that downloads with the extension .dwg are placed automatically in a folder named DWG DOWNLOADS…
How to achieve this in vb.net?
In any browser you have a config section.
In Firefox you have browser.download.useDownloadDir;true and browser.download.folderList;1
you can add your own config to allow different saved folder paths and dynamically modify them depending on the extension of the file you uploaded.
See a complete list of the web browser config with about:config in address bar.
Not real sure what you are asking, but if you are actually making a web browser just check the extension of the file you are requesting to download. If the extension is ".dwg" then save the file to the folder you want.
If you are wanting to automatically move Google Chrome downloads to a different directory, you can use a FileSystemWatcher to monitor for new files in Chrome's download directory and move them to another folder based on each file's extension.
Background: For some reason, whenever a user tries to open an xslx (excel 2007) file from our intranet using MSIE, the file download dialog interprets it as a "zip" file.
Admittedly, xslx files really are zip files, but we don't want that behavior. Just open in Excel, please.
Question:
Firefox, OTOH, opens the files normally. Is it possible that the fault is my apache configs? or is this a client-browser-only issue?
You must add some new MIME-TYPES on the web-server-side.
See the comment-thread on this windowsnerd.com page (from 2009):
Add this to a .htaccess file and throw it on your site: AddType
application/vnd.openxmlformats .docx .pptx .xlsx .xltx . xltm .dotx
.potx .ppsx
Should fix many of the problems.
Alternatively, you can add this to the mime.types file located in the config directory of your Apache web server
application/vnd.ms-word.document.macroEnabled.12 .docm
application/vnd.openxmlformats-officedocument.wordprocessingml.document docx
application/vnd.openxmlformats-officedocument.wordprocessingml.template dotx
application/vnd.ms-powerpoint.template.macroEnabled.12 potm
application/vnd.openxmlformats-officedocument.presentationml.template potx
application/vnd.ms-powerpoint.addin.macroEnabled.12 ppam
application/vnd.ms-powerpoint.slideshow.macroEnabled.12 ppsm
application/vnd.openxmlformats-officedocument.presentationml.slideshow ppsx
application/vnd.ms-powerpoint.presentation.macroEnabled.12 pptm
application/vnd.openxmlformats-officedocument.presentationml.presentation pptx
application/vnd.ms-excel.addin.macroEnabled.12 xlam
application/vnd.ms-excel.sheet.binary.macroEnabled.12 xlsb
application/vnd.ms-excel.sheet.macroEnabled.12 xlsm
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet xlsx
application/vnd.ms-excel.template.macroEnabled.12 xltm
http://www.webdeveloper.com/forum/showthread.php?t=162526
The reason is IE's strange MIME sniffing behaviour: http://msdn.microsoft.com/en-us/library/ms775147.aspx. It basically tries to determine to the file type of a file by looking into its contents, somehow like Linux's file tool.