i must check all :file fields, all fields must be not empty. i use code
function CheckFiles() {
var t = $('.uploadElement:empty').size();
alert(t);
}
but t return all uploadElement elements count. how to get empty :file fields?
sorry my english
...
I have written the following method to detemine whether file in question is formatted with DOS/ MAC, or UNIX line endings.
I see at least 1 obvious issue:
1. i am hoping that i will get the EOL on the first run, say within first 1000 bytes. This may or may not happen.
I ask you to review this and suggest improvements which will lead to...
Hi,
I want to write a function in javascript which creates a file and write some content to it, iam working with firefox, can anybody help me in this case.
Thanks...
...
I want to make it like when I click a button, it will create a new file. Then the jTree will highlight the new file. Below are my code. Currently I create new file, i will show the new file but no highlight the file.
class FileTreeModel implements TreeModel {
private FileNode root;
public FileTreeModel(String directory) {
root = ne...
I have a file inputfile
<input tye='file' id='funPic' name='funPic' />
I need to get the name of the selected file,
$('#funPic').val() in Firefox and Chrome gives abc.jpg where as IE7 & IE8 gives c:\xyz\abc.jpg
Why is this? I need only the abc.jpg part.
...
I am currently trying to figure out how to get a batch file to run correctly in Windows 7. I have looked on the Internet and have not had much success in finding any useful information on the issue I am encountering.
BATCH FILE – The batch file is to open a window to allow students to test on a TDSM server created by ETS eCBT – The tes...
I have a filename (C:\folder\foo.txt) and I need to retrieve the folder name (C:\folder) in unmanaged C++. In C# I would do something like this:
string folder = new FileInfo("C:\folder\foo.txt").DirectoryName;
Is there a function that can be used in unmanaged C++ to extract the path from the filename?
...
I have a 1GB binary file on another system.
Requirement: ftp/download and convert binary to CSV on main system.
The converted file will be magnitudes larger ~ 8GB
What is the most common way of doing something similar to this?
Should this be a two step independent process, download - then convert?
Should I download small chunks at...
Ok, so hopefully I can explain this in enough detail for somebody to be able to help me.. I am writing a program in C# that is supposed to take a text file and replace specific text, which happen to be names of files, and print a new text file for every single combination of the given filenames. The specific places to change the text of ...
Hi,
I am kinda stuck, I've been using Django for a while now, but I cant actually seem to find this thing out. And thats weird because it should be a simple thing.
I've been googling around and can't seem to find a solution, it maybe because it is a simple thing.
The problem is, I have a ModelForm, and it has a FileField, when I rende...
I want to write the application which will transfer file from android (nexus1) to some other server by using GPRS.which protocol should i use and how to implement that?
...
<input type="file" />
Can I replace the file input field (above) with a simple button:
<button type="submit">Upload</button>
File input doesn't fit nicely into the design, and styling it is a pain so if its possible to use a button instead for file uploading, thats also cross-browser compatible, that'd be awesome!
Thanks!
...
I have a set of files that I'm saving by date, year_month_day.txt format. I need to open the previous day's text file for some processing. How do I find the previous day's date in python?
...
hi,
Getting this strange error.
In C#, I write to a file (txt) whose location I provide at run-time.
The problem is that whatever location I provide, It returns an error: Access to "..path.." is denied.
I checked the permissions, but the required permissions are set.
My code snippet
folderBrowserDialog.ShowDialog();
StreamWriter ...
I have a updater bundle that lookups in a specific folder "bundle" and checks for new bundles to install and updates for currently installed bundles. Inside a parent directory, OSGi framework is in the "/framework" directory, updater bundle is in the "/system" directory and the directory needs to be checked is the "/bundles" directory in...
Is it possible to rename file when trying to download it?
For example, I would like to store files to folders using their id's but when user downloads file I'd like to return the original filename.
...
Hi,
i must write (at start of app) and delete is content (at the end of app) a csv in my sandbox file with a stream of data.
For your experience, what's the best way to do this?
edit:
i'm trying with this:
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectory = ...
Hello
I wanna check if my string is valid windows file path. I was searching around and it seems that there is no reliable method to do that. Also I checked boost filesystem library , and no obvious function exist to do this check , maybe something like is_valid_windows_name
...
I was wondering if it is possible to post a file - along with other form data - when the file is just a string?
I know that you can post a file that is already on the filesystem by prefixing the filepath with "@".
However I'd like to bypass creating a temporary file and send just the file as a string, but I am unsure how to construct t...
I have a file named data.dat with the following contents:
my name is elyas 123
this is a book 123.450
my father name -2.34e+05
I want load this file into MATLAB and get the following data as output:
a = 123
b = 123.450
c = -2.34e+05
name = 'elyas'
But I don't know how to do this. Any suggestions?
...