Wrong File Extension after using "Save AS" in PS7 and PSCS

After using 'Save As' the file extension is incorrect (such as filename.psd.jpg) or on opening an image file saved with Save As Photoshop returns the message "Could not complete your request because it is not a valid Photoshop Document".
There's a setting in 'Tweak UI' under the heading 'Common Dialogs' that offers a choice of disabling 'Enable AutoComplete'.
If you disable 'Enable AutoComplete' then Photoshop 7 and 8 (CS) will no longer add the appropriate ending to a file when using 'save as'.
Unfortunately re-enabling this option does NOT appear to cure the problem, and a re-install of the O/S may be necessary.
(Courtesy of Russell Proulx)

That would work if I scanned each card one at a time but that would increase my scanning time 9X.
Here's a sample of my scanned image:

Similar Messages

  • IPhone photo/video library glitch - wrong file extensions, name shift, lost files etc [LONG story - sorry]

    I have a 5s running 7.0.4. and my computer is running Windows 8.1.
    We had a baby and my phone filled up fast with pictures and videos, so I decided to offload them onto my PC. I connected my phone to the usb port, and directly copied from the DCIM folder to my hard drive.
    Something happened during the first attempt, and the process was interrupted. So I went into each of the sub folders, and selected all files, and started the copy process again. I told the computer to skip any existing files.
    So all the file counts matched in each folder, and I figured it was safe to start deleting from my iPhone.
    On my hard drive, I separated all the MOV files into my Videos folder. But in Windows Explorer, the thumbnail view showed several MOV files with no thumbnail - just the generic icon.
    As I sorted my photos into various folders, I also noticed a lot of generic icons instead of thumbnails for the JPGs. I started to feel concerned that my files had become corrupt during the transfer. But then I noticed a PNG file that was a few hundred megabytes. This was odd, so I added the MOV extension to it. Sure enough, it was a video with the wrong extension.
    I renamed every PNG and JPG file that had no thumbnail to add the MOV extension. Every one was a video with the wrong file extension.
    Then I went to the video folder, and all the MOV files that had the generic icon were actually JPG files.
    Well I was just happy to see that the files were not corrupt.
    One more time before I deleted things from my iPhone, I did a spot check to see that the largest videos were on my hard drive. I found a few videos that were not copied over, despite the file counts having been accurate. So I copied the videos again, and compared file sizes and date/times when there was an overwrite prompt. Most were matches, but several were the same file name with different sizes and dates.
    I didn't know what was going on, but I just wanted to get the files on my computer. So I renamed my local copy where there was a name collision, and copied the videos. I deleted the videos from my phone as I went along.
    I felt pretty confident that I had all the files copied now, so I began mass deleting my photos.
    I went to the Photos app on the phone, and watched the thousands of pictures disappear, and the glorious free space grow on my phone.
    But wait... there was still 1 video in the Photos app. I thought I had gotten all the MOV files off the phone...
    I have a photo info app installed, so I was able to see the file name of the video. I searched for that file name in the DCIM subfolders, but the folder that had that series of files (the IMG_3000-3999 files) listed the files with that particular video skipped. It was clearly still on my phone, because I could play it.
    Then I noticed it was a 45 minute long video of my baby. About 5 GB. So I figured it must be due to the file size that it wasn't visible from explorer. (Can't explain why that would be, but M$ keeps changing crap too. I never freaking know what to expect from them either.)
    After having deleted all the jpg, png and mov files from the DCIM folder, there were still about 26 files in my camera roll on the iPhone. And I could still view the video.
    I decided I wasn't concerned about the photos, I just wanted to figure out how to get the video onto my computer.
    So I selected all the photos in the photo app (skipping the 1 remaining video) and tapped the trash can.
    Poof! One item remained, and it was one of the garbage photos. My video is GONE! ^#@*&#($^@Q&%( And no, I didn't fat-finger it. I was very careful to select the correct thumbnails.
    Looking back, I know that I should have just started the entire file copy process from scratch when funny stuff started happening like mismatched file names. But I am a sleep-deprived new mom and just wasn't thinking clearly. It would be nice if I could have used my file/directory compare program to check the iPhone against my laptop, but it is not compatible with devices, only removable drives.
    And no, I don't use iTunes. I stopped using iTunes years ago when it would randomly decide to delete contacts from my phone just because they didn't exist on my computer or some sh-- like that. I have always just manually synced all my stuff and have never had an issue like this. To say I am sad to lose that video is an understatement.
    I googled "iPhone undelete" and "iPhone data recovery" and downloaded a trial for one of the likely candidates. It turned up a bunch of garbage, but not my video.
    Anyways... I am wondering if anyone else has experienced this type of scenario? Has anybody identified what could cause this to happen? I would like to avoid this in the future. (I will avoid this type of loss, because I know now what I could have done differently to be more careful. But it would be nice if I didn't have to get all neurotic about checking 60GB of photos/videos side by side each time I copy them to my computer...)
    I have seen other threads on the forum here regarding corrupted libraries and such, but I am not sure this is the same thing.
    One suspicion I have is that it might have to do with the iPhoto app being installed on the phone. I can't articulate why I think that is worth considering. But when I looked at my Video folder, I ended up with many duplicate videos, and all the duplicated videos' file names were 2 numbers apart. As if all the file names got shifted at some point. Very strange.
    Thanks for listening to my rant. If anybody has an idea, I am interested. If anybody else has lost precious memories due to this, we should talk. If it is a widespread problem, maybe we can all get together and pound down Apple's door?
    As an aside: Why am I unable to select Apple Support Community to post this question to?

    In my case number of weird things happen whenever I try to copy pictures/videos from my iPhone from direct USB...
    1. JPG files are wrongly named as MOV and vice versa.
    2. I copy only folders but in addition files with no extension are copied in the main folder, very strange.
    3. Whenever I open one of the folders, strange icons like this () start appearing which cannot be copied even.
    Unfortunately I used to delete a lot of files with wrong extensions in the past because I never new they could be fixed.
    Apple should answer this!
    Note: I am using Windows 8.1 and use a direct USB cable without iTunes to copy the media files directly from My Computer.

  • When I have video clips on my timeline, they do not play in the monitor screen. I hear the sound track but can not see the image. To test if my new files are somehow the problem, I went back and used video files that I used successfully a year ago, and th

    When I have video clips on my timeline, they do not play in the monitor screen. I hear the sound track but can not see the image. To test if my new files are somehow the problem, I went back and used video files that I used successfully a year ago, and they no longer play in the monitor window. I hear the sound track, but do not see any video. Have I changed some setting that controls video playback in the monitor window?

    Randy Ruttger
    Thanks for the follow up.
    Missing in this equation were the version of Premiere Elements that you were using and the computer operating system on which it was running. But...
    The deed is done. But.....Until now and after you went ahead and moved to version 12, we now learn what version of Premiere Elements you were using. We still do not know the computer operating system involved.
    You just said Premiere Elements 10. Premiere Elements 10 is hit by a serious known display issue if the computer uses a NVIDIA GeForce video card/graphics card. In this issue, the only remedy is to roll back the driver version to about May 2013. The description of the problem and how to do the roll back are described in one of the Announcements at the top of this forum. What video card/graphics card does your computer use?
    On another front, Adobe will be releasing a new version of Premiere Elements any day now. No one but Adobe knows the feature set for the new version. That type of information is announced at the moment of release of the new version.
    So the remedy to the problem that you presented in this thread could have been...
    1. Rolling back the NVIDIA GeForce driver version to about May 2013 if possible (Windows 8 or 8.1 64 bit, may not be possible)
    2. Move to another version of Premiere Elements (which you did)
    I offer the above for consideration so that you can review your decisions. We are pleased to learn that Premiere Elements 12/12.1 works for you.
    Please do not hesitate to ask questions and ask for clarifications, but remember that the answers are in the details.
    Best wishes,
    ATR

  • In LR6CC, after using the merge to HDR and the photo returns to LR as a DRG, it is not automatically put into a previously set up stack. For example a stack of three photos. If I use NIK HDR and the photo returns to LR, the stack is automatically changed

    In LR6CC, after using the merge to HDR and the photo returns to LR as a DRG, it is not automatically put into a previously set up stack. For example a stack of three photos. If I use NIK HDR and the photo returns to LR, the stack is automatically changed from 3 to 4. When LR's HDR merge brings a photo back into LR's library, the stack number does not change and the DRG version isn't included in the stack.

    Hi,
    The Ps CS6 public beta version contains the same camera support as found in Ps CS5/5.5 compatible CR 6.6. There will be future updates to CR 7 for Ps CS6 to pick up more camera support. The Nikon D800 NEF files are not supported, yet.
    If you like to work with your D800 files in the public beta build now, you'll have to get the DNG Converter 6.7 from here: http://labs.adobe.com/technologies/cameraraw6-7/
    and convert your files to DNG.
    regards,
    steve

  • "An error occurred while opening the file dialog. Please save your presentation, exit, and restart PowerPoint."

    In PowerPoint 2013 on Windows 7 - 64 bit, when
    File / Save as is selected, an error message comes up stating, "An error occurred while opening the file dialog. Please save your presentation, exit, and restart PowerPoint." This is an intermittent issue and also
    affects Excel 2013. I have tried repairing it, done windows update and also uninstalled and reinstalled but no luck. I have researched this issue but it relates to Office 2007 and 2010 and the resolution does not support 2013.
    Has anyone come across this issue? If so how did you resolve it?
    Many thanks….

    Hi,
    You mentioned you tried some steps but I'm not sure what they are, you may try my suggestion to resolve this issue, follow these steps:
    Click Start, right-click Computer, click
    Properties, and then click Advanced system settings.
    On the Advanced tab, click Environment Variables.
    Locate and select the __COMPAT_LAYER variable, and then click Edit.
    Set the value of the __COMPAT_LAYER variable to EnableThemes. Or, delete the __COMPAT_LAYER variable.
    If the issue persists, we can troubleshoot this problem in Clean Boot to determine whether background programs are interfering with PowerPoint:
    http://support.microsoft.com/kb/929135
    Regards,
    Melon Chen
    TechNet Community Support

  • My i phone 4 as died after using facetime any ideas why and how to start it bak up???

    my i phone 4 as died after using facetime any ideas why and how to start it bak up???

    Connect iPhone to Wall Charger for 10 minutes, it may turn ON itself. If still nothing, keep on charger and Reset, hold both home and power buttons for about 20 seconds until the iPhone begins to start.

  • Need help " Can't find a valid editor for this file extension" not sure why I am getting and this or what to do.

    also say explorer not reading SWF files and I have to reload them? Not sure what that is either,
    Thanks
    Jim

    Hi Nancy
    Trying to update my site got to make some changes.  Do you work on sites via remote? I am on Cloud.
    : Nancy O. 
    Sent: Monday, September 01, 2014 3:47 PM
    To: James Neidner
    Subject:  Need help " Can't find a valid editor for this file extension" not sure why I am getting and this or what to do.
    Need help " Can't find a valid editor for this file extension" not sure why I am getting and this or what to do.
    created by Nancy O. <https://forums.adobe.com/people/Nancy+O.>  in Dreamweaver support forum - View the full discussion <https://forums.adobe.com/message/6692200#6692200>

  • Firefox downloads a file with the wrong file extension. How can I fix this?

    The title says it all. When I download files, it comes out with the wrong extension, not sure what extension it comes out as.
    It actually just comes out as "file."
    How can I fix this? Is there something in about:config I can tweak to eliminate this error?

    Hi dartz!
    This type of problems are not related with the browser you are using, in this case, Firefox. This issues are the consequence of the way that the website "packed" the file.
    What you should do is download the file, locate the file, give right click on the file and select "Rename". Now, don't change the name!!! Just add "." and then the extension that you wanted. Example, you download the file "norwegianwood", after renaming it, it should read "norwegianwood.srt".
    Hope this works for you, take care!

  • Wrong File Plays After DVD Burn

    So my iDVD file works perfectly, and after days of building, is finally ready to burn. After doing so, one of the files, which works perfectly in iDVD, burns out the wrong movie. I've burned a few discs, and it keeps burning the wrong track. There are about 10 different movies on the DVD, all of which are fine except for the one. I've tried deleting the file, re-importing it, then burning again... and it burns the same wrong file again. The movie that actually burns is also another movie in the same sub-menu, so I get two of the same movie. In preview mode, its the right movie. In all menu windows its the right movie. Just on the burned DVD is it wrong.
    Help!

    Welcome to the Apple Discussions. Always save the iDVD project as a disk image before burning. That way you can check out the encoding process to make sure it went as intended before committing to disk.
    You might try opening the iDVD project and use the Advanced->Delete Encoded Assets menu option and then do a File->Save as Disk Image. See if that will clear up the issue.
    OT

  • Excel File Error After Using SaveAsDialog in C#

    Hello,
    I have a project where I am trying to use SaveFileDialog. My code runs fine and saves the file to the directory that I choose. The problem is when I try to open the file I receive an error from Excel stating
     “Excel cannot open the file Test_File.xlsx because the file format or file extension is not valid. Verify that the file has not been corrupted and that the file extension matches the format of the file”
     Is there something happening in my code that is corrupting the file during the save process?
    I can’t figure out why I am getting this error. Any help will be greatly appreciated.
    I am working in VS 2013 Pro. and using C#. Here’s my code:
    private
    void btnSave_Click(object
    sender, EventArgs e)
    Stream saveFile;
    SaveFileDialog saveFileDialog1 =
    new
    SaveFileDialog();           
    saveFileDialog1.Title = "Save As";          
    saveFileDialog1.Filter = "Excel Files (*.xlsx)| *.xlsx";
    saveFileDialog1.FilterIndex = 2;
    saveFileDialog1.RestoreDirectory = true;           
    if (saveFileDialog1.ShowDialog() ==
    DialogResult.OK)
    if ((saveFile = saveFileDialog1.OpenFile()) !=
    null)
    // Code to write the stream goes here.
    saveFile.Close();
    Thank you,
    Dave
    David Young

    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.Windows.Forms;
    using System.Data.SqlClient;
    using ClosedXML.Excel;
    using DocumentFormat.OpenXml;
    using System.IO;
    namespace LoanOrig_FDIC_Codes
    public partial class Form1 : Form
    SqlCommand sqlCmd;
    SqlDataAdapter sqlDA;
    DataSet sqlDS;
    DataTable sqlDT;
    SqlCommand sqlCmdCnt;
    public Form1()
    InitializeComponent();
    //BEGIN BUTTON LOAD CLICK EVENT
    private void btnLoad_Click(object sender, EventArgs e)
    string sqlCon = "Data Source=FS-03246; Initial Catalog=ExtractGenerator; User ID=MyID; Password=MyPW";
    //Set the 2 dateTimePickers to today's date
    DateTime @endDate = End_dateTimePicker.Value.Date;
    DateTime @startDate = Start_dateTimePicker.Value.Date;
    //Validate the values of the 2 dateTimePickers
    if (endDate < startDate)
    MessageBox.Show("End Date must be greater than or equal to the Start Date OR Start Date must be less than or equal to the End Date ", "Incorrect Date Selection",MessageBoxButtons.OK,MessageBoxIcon.Error);
    //Reset both dateTimePickers to todays date
    Start_dateTimePicker.Value = DateTime.Today;
    End_dateTimePicker.Value = DateTime.Today;
    return;
    //End of date validation
    string sqlData = @"SELECT AcctNbr,
    CurrAcctStatCD,
    Org,
    MJAcctTypCD,
    MIAcctTypCD,
    NoteOriginalBalance,
    ContractDate,
    FDICCATCD,
    FDICCATDESC,
    PropType,
    PropTypeDesc
    FROM I_Loans
    WHERE CAST(ContractDate AS datetime) BETWEEN @startdate AND @enddate ORDER BY ContractDate";
    SqlConnection connection = new SqlConnection(sqlCon);
    SqlCommand sqlCmd = new SqlCommand(sqlData, connection);
    sqlCmd.Parameters.AddWithValue("@startDate", startDate);
    sqlCmd.Parameters.AddWithValue("@endDate", endDate);
    sqlDS = new DataSet();
    sqlDA = new SqlDataAdapter(sqlCmd); //SqlAdapter acts as a bridge between the DataSet and SQL Server for retrieving the data
    connection.Open();
    sqlDA.SelectCommand = sqlCmd; //SqlAdapter uses the SelectCommand property to get the SQL statement used to retrieve the records from the table
    sqlDA.Fill(sqlDS, "I_Loans"); //SqlAdapter uses the "Fill" method so that the DataSet will match the data in the SQL table
    sqlDT = sqlDS.Tables["I_Loans"];
    //Code section to get record count
    sqlCmdCnt = connection.CreateCommand();
    sqlCmdCnt.CommandText = "SELECT COUNT(AcctNbr) AS myCnt FROM I_Loans WHERE ContractDate BETWEEN @startDate AND @endDate";
    sqlCmdCnt.Parameters.AddWithValue("@startDate", startDate);
    sqlCmdCnt.Parameters.AddWithValue("@endDate", endDate);
    int recCnt = (int)sqlCmdCnt.ExecuteScalar();
    txtRecCnt.Text = recCnt.ToString();
    btnExport.Enabled = true;
    btnSave.Enabled = true;
    //End of code section for record count
    connection.Close();
    dataGridView1.DataSource = sqlDS.Tables["I_Loans"];
    dataGridView1.ReadOnly = true;
    //Reset both dateTimePickers to todays date
    Start_dateTimePicker.Value = DateTime.Today;
    End_dateTimePicker.Value = DateTime.Today;
    //END BUTTON LOAD CLICK EVENT
    //BEGIN BUTTON EXPORT CLICK EVENT
    private void btnExport_Click(object sender, EventArgs e)
    { //ClosedXML code to export datagrid result set to Excel
    string dirInfo = Path.GetPathRoot(@"\\FS-03250\users\dyoung\LoanOrig_FDIC_Codes");
    if (Directory.Exists(dirInfo))
    var wb = new XLWorkbook();
    var ws = wb.Worksheets.Add(sqlDT);
    ws.Tables.First().ShowAutoFilter = false;
    wb.SaveAs(@"\\FS-03250\users\dyoung\LoanOrig_FDIC_Codes\LoanOrig_FDIC_Codes_" + DateTime.Now.ToString("yyyy-MM-dd") + ".xlsx");
    MessageBox.Show("File has been exported to U:\\LoanOrig_FDIC_Codes", "File Exported", MessageBoxButtons.OK, MessageBoxIcon.Information);
    //End of ClosedXML code
    else
    MessageBox.Show("Drive " + "U:\\Visual Studio Projects\\LoanOrig_FDIC_Codes" + " " + "not found, not accessible, or you may have invalid permissions");
    return;
    //END BUTTON EXPORT CLICK EVENT
    private void Form1_Load(object sender, EventArgs e)
    //Set dates to be today's date when the form is openend
    Start_dateTimePicker.Value = DateTime.Today;
    End_dateTimePicker.Value = DateTime.Today;
    private void Form1_Load_1(object sender, EventArgs e)
    // TODO: This line of code loads data into the 'dataSet1.I_Loans' table. You can move, or remove it, as needed.
    this.i_LoansTableAdapter.Fill(this.dataSet1.I_Loans);
    private void iLoansBindingSource_CurrentChanged(object sender, EventArgs e)
    //BEGIN THE SAVE AS PROCESS
    private void btnSave_Click_1(object sender, EventArgs e)
    Stream saveFile;
    SaveFileDialog saveFileDialog1 = new SaveFileDialog();
    saveFileDialog1.Title = "Save As";
    saveFileDialog1.Filter = "Excel Files (*.xlsx)| *.xlsx";
    saveFileDialog1.FilterIndex = 1;
    saveFileDialog1.RestoreDirectory = true;
    if (saveFileDialog1.ShowDialog() == DialogResult.OK)
    if ((saveFile = saveFileDialog1.OpenFile()) != null)
    // Code to write the stream goes here.
    saveFile.Close();
    private void btnExit_Click(object sender, EventArgs e)
    this.Close();
    //END THE SAVE AS PROCESS
    Here is the code for the whole project up to this point
    David Young

  • Pse 7 changes the file extensions, by using a -1 up to 6 times on a photo, how to stop this problem.

    I cannot keep up with my photos, they somehow change the file extension by adding
    a -1 over and over, how can I stop this process
    to keep a single file extension?

    I checked out the backup/sync, it is not turned on after checking.   Also I do not have a second computer as a backup, I use an Esata drive of 1 TB.
    I have a photo called Rose.jpg, later I try to open the file and it tell be its lost.  I try to reconnect, no luck, then I manually try to find the file and its called Rose-1.jpg or up to Rose-1-1-1-1-1-1.jpg or Rose-1-1-1-1-1-1_edited.jpg.  I do not understand what is taking place in my computer with my photos.   I have about 17,000 photos and I am having a real problem.
    Any help would be appreciated.  sghmotorhome

  • Bridge removing file extension after batch rename

    Hi All,
    I've been having trouble with what appears to be a problem with Bridge in Photoshop CS2. I'm well aware this is an older version but, in this case, I don't think that should matter. Here is my situation:
    After batch renaming jpeg files, I've had a problem with Bridge simply stripping off the file extension on all the newly renamed files. This never happens right away...always later. In other words, I'll batch rename a folder full of photos without issue, note that the rename was successful, and then return to that same folder a short time later to find white thumbnails and missing file extensions. This has happened exactly the same way on two different computers - and always with the delay.
    This is getting to be very annoying. Has anyone had or heard of a similar issue? Thanks very much...

    First use the menu tools / cache / purge cache for folder, if still in trouble restart Bridge holding down option key to refresh preferences

  • How can you disable Adobe Reader from opening a file right after you save it as a pdf?

    Hi,
    I often save word files as pdf files and right after I save them as pdfs it opens the file in adobe reader. How can I disable this?
    Thanks

    Ahh, but that's the design function of any PDF viewer add-on to a browser.
    To avoid -- Use the browser feature that saves a file to the local machine.
    Then open the file with the appropriate application.
    If your machine/device does not support this then you'd want to change to one that supports what you want eh.
    Be well...

  • How to resolve same file extensions conflict using LabVIEW ?

    All,
    Let's say I have two files withe the same file extension. One of the files opens only with one particular program whereas another file opens only with another program.
    So I was wondering, by using LabVIEW , if there is a way to tell (programatically) to which program are each of these files assigned to.
    I am not quite sure if there is something that can be done by using WINAPI or .NET?
    Please help
    Thank you  

    The only way you are going to be able to do that is if there is something within the file itself that gives an indication what program might have saved it.
    For example, in the header for an .xls file, there is probably something that describes it as Microsoft Excel, perhaps even the version of Excel, that was put there when Excel saved it.  But if you have another program save the file, let's say notepad was used and the user picked .xls as the file extension, then there is nothing that will describe that Notepad saved it.
    But all of this is basically what ToeCutter was already telling you.
    If you need more help, then you will have to provide more information such as what types of files and what programs were used that got their file extensions mixed up.

  • Set content type based on file extension after uploading into document library

    when there are multiple content types associated with a document library, say, report builder report, and excel documents, after you drag and drop a document into the document library, content type will not be detected based on the file extension. Suppose
    your default content type is document, and you had added the report build report content type, and you uploaded a .RDL file, the content type for the file will be set to the default document content type.
    I get a requirement to update the content type automatically based on the file extension, what follows is my code:
    public class setCNTByFileExtItemAdded : SPItemEventReceiver
    /// <summary>
    /// An item was added.
    /// </summary>
    public override void ItemAdded(SPItemEventProperties properties)
    if (properties.Web.GetFile(properties.AfterUrl).Exists)
    SPListItem CurrentListItem = properties.Web.GetFile(properties.AfterUrl).Item;
    String FileName = CurrentListItem.Name;
    if (FileName.EndsWith(".rdl",StringComparison.OrdinalIgnoreCase))
    CurrentListItem.Properties["ContentTypeId"] = "0x010100C3676CDFA2F24E1D949A8BF2B06F6B8B";
    CurrentListItem.SystemUpdate(false);
    base.ItemAdded(properties);
    What follows are references that helped me:
    http://stackoverflow.com/questions/7984300/properties-listitem-is-null-in-itemadded-event-while-uploading-documents-using
    http://williamvanstrien.blogspot.in/2011/10/read-content-of-uploaded-file-within.html
    http://blogs.msdn.com/b/manuj/archive/2009/09/22/itemadded-event-on-document-library-the-file-has-been-modified-by-on-error.aspx
    http://support.microsoft.com/kb/2647429

    user may have further requirement to detect whether the uploaded .xlsx file contains powerpivot data model, i tried the following code, the caveat is that .xlsx is actually a zip file, i just test whether the uploaded stream contains an entry xl/model/item.data.
    public partial class ApplicationPage2 : LayoutsPageBase
    protected void Page_Load(object sender, EventArgs e)
    if (this.IsPostBack)
    if (FileUpload1.PostedFile == null)
    return;
    string destWeb = DestinationUrl.Url;
    string destUrl = destWeb + "/" + FileUpload1.FileName;
    using (SPSite site = new SPSite(destWeb))
    using (SPWeb web = site.OpenWeb())
    SPFile f = web.Files.Add(destUrl, FileUpload1.PostedFile.InputStream);
    if (FileUpload1.FileName.EndsWith(".xlsx") )
    Stream fs = f.OpenBinaryStream() as Stream;
    using (ZipArchive zfs = new ZipArchive(fs, ZipArchiveMode.Read))
    if (zfs.GetEntry("xl/model/item.data") == null)
    Debug.WriteLine("Does not contain data model");
    else
    Debug.WriteLine("Contain data model");
    The code i posted here is part of an application page in layout folder, the reason why i use application page is described in
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/065d010a-d37e-4da4-9873-172ab2c50d6d/custom-list-new-application-page-with-listfielditerator-and-savebutton?forum=sharepointdevelopment#288a686e-bfbe-41aa-83d0-58a80f0cec07

Maybe you are looking for