You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it works well if it set filepath '/tmp/photo.jpg', the picture is writed into /tmp folder of my hddrive, so it is not allowed to writeFile to current path?
File paths passed to Node's APIs are treated as real file system paths, instead of the relative paths used by HTML. So /photo.jpg in your case represents the photo.jpg under the /, e.g. the file system's root.
Activity
tnako commentedon May 18, 2014
For current path you need to write './photo.jpg' (add dot before slash).
teamrun commentedon May 19, 2014
i tryed this, got same error. it seems like it is not allowed to write file to current path, the app's path.
/tmp/photo.jpgand/Users/userName/Documents/dev/photo.jpgworkszcbenz commentedon May 20, 2014
File paths passed to Node's APIs are treated as real file system paths, instead of the relative paths used by HTML. So
/photo.jpgin your case represents thephoto.jpgunder the/, e.g. the file system's root.teamrun commentedon May 21, 2014
yeah, it my fault. I required path module and path.join to get the right write path and it works well. Thank you all
chore: roll Squirrel.Mac for streamed, resumable and delta update dow…
feat: roll Squirrel.Mac for streamed, resumable and delta update down…
feat: roll Squirrel.Mac for streamed, resumable and delta update down…