~mateo-salta/nitroshare/nitroshare

« back to all changes in this revision

Viewing changes to src/CFileSender.cpp

  • Committer: Nathan Osman
  • Date: 2012-06-20 04:12:55 UTC
  • Revision ID: admin@quickmediasolutions.com-20120620041255-q9h0r4phyz3x6vqw
Implemented security policy for incoming files... even though they still aren't properly stored on the receiving end.

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
 
51
51
    // Prepare the file header
52
52
    CFileHeader header;
53
 
    header.SetFilename(m_file.fileName().toUtf8());
 
53
    header.SetFilename(QFileInfo(m_file.fileName()).fileName().toUtf8());
54
54
    header.size = m_file.size();
55
55
 
56
56
    // Send the file header